Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt4 import QtCore, QtGui
- import maya.cmds as cmds
- import pumpThread
- class TestUi(QtGui.QDialog):
- def __init__(self, parent=None):
- super(TestUi, self).__init__(parent)
- layout = QtGui.QHBoxLayout()
- self.setLayout(layout)
- self.button = QtGui.QPushButton()
- self.button.setText("Qt Test Close")
- layout.addWidget(self.button)
- self.setWindowTitle("Test PyQt Ui")
- self.connect(self.button, QtCore.SIGNAL("clicked()"), self.close)
- @staticmethod
- def Display():
- global form
- app = QtGui.QApplication.instance()
- pumpThread.initializePumpThread()
- form = TestUi()
- form.show()
- if __name__ == "__main__":
- TestUi.Display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement