Skip to content

Commit

Permalink
drag_n_drop_install script bug fixes #154
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Sep 1, 2023
1 parent 12d6b58 commit fc31ea5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drag_n_drop_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# -- constants
TITLE = "Install mGear"
VERSION = 1.1
VERSION = 1.2
MGEAR_MOD_PATH = "MGEAR_MODULE_PATH"
MAYA_MOD_PATH = "MAYA_MODULE_PATH"
PLUGINS = ["mgear_solvers.mll", "weightDriver.mll"]
Expand All @@ -41,7 +41,7 @@ def maya_main_window():
"""
main_window_ptr = OpenMayaUI.MQtUtil.mainWindow()

if sys.version_info.major <= 3:
if sys.version_info.major >= 3:
return wrapInstance(int(main_window_ptr), QtWidgets.QWidget)
else:
return wrapInstance(long(main_window_ptr), QtWidgets.QWidget)
Expand All @@ -53,7 +53,7 @@ def __init__(self, parent=maya_main_window()):
super(InstallUI, self).__init__(parent)

self.setWindowTitle(TITLE)
self.setFixedSize(550, 380)
self.setFixedSize(550, 580)
self.setWindowFlags(QtCore.Qt.WindowType.Window)

self.create_widgets()
Expand Down Expand Up @@ -81,7 +81,7 @@ def create_widgets(self):

self.logging_widget = QtWidgets.QPlainTextEdit()
self.logging_widget.setReadOnly(True)
self.logging_widget.setMaximumHeight(120)
self.logging_widget.setMaximumHeight(320)

def create_layout(self):
"""Layout of all widgets goes under this section."""
Expand Down

0 comments on commit fc31ea5

Please sign in to comment.