def __init__(self, parent=None, trigger=None): QtGui.QDialog.__init__(self, parent) self.ui = Ui_Dialog() self.ui.setupUi(self) """self.ui.ok.clicked.connect(self.ok) self.setModal(True)""" self.show()
class Form(QtGui.QDialog): def __init__(self, parent=None, trigger=None): QtGui.QDialog.__init__(self, parent) self.ui = Ui_Dialog() self.ui.setupUi(self) """self.ui.ok.clicked.connect(self.ok) self.setModal(True)""" self.show() def cancel(self): self.reject() def ok(self): self.accept()
def __init__(self): super(holamundo, self).__init__() self.ui = Ui_Dialog() self.ui.setupUi(self) self.show()
def __init__(self): super(holamundo, self).__init__() self.ui=Ui_Dialog() self.ui.setupUi(self) self.show()