![]() ![]() ![]() MyNewFreeCADWidget.ui = Ui_Form() # load the Ui script MyNewFreeCADWidget = QtGui.QDockWidget() # create a new dckwidget (self.pushButton, QtCore.SIGNAL("clicked()"), ) If I use the Signals/Slots editor to link the button to itself the resulting file looks likeĬode: Select all from PySide import QtCore, QtGui What seems to be a better way of doing things is to have Qt Designer add the "added 1" parts. The problem is whenever the ui changes I have to make a copy of "added 1" part, delete old "class Ui_Form", insert new "class Ui_Form", then finally insert back "added 1" part. (self.pushButton,QtCore.SIGNAL("clicked()"),self.pushButton) Self.pushButton = QtGui.QPushButton(Form)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |