class PopVar(QtGui.QDialog): # Se define el constructor de la clase __init__ def __init__(self): # Se llama al constructor de la clase padre QtGui.QDialog.__init__(self) # Se crea la instancia de Ui_Dialog self.ventana = Ui_AgreVar() self.ventana.setupUi(self) self.ventana.buttonBox.connect(self.ventana.buttonBox, SIGNAL("accepted()"),self, SLOT("accept()")) self.ventana.buttonBox.connect(self.ventana.buttonBox, SIGNAL("rejected()"),self, SLOT("reject()")) self.ventana.toolButton.connect(self.ventana.toolButton, SIGNAL("clicked()"),self, SLOT("popAyuda()")) @pyqtSlot() def popAyuda(self): self.ayuda = PopAyuda("generalTipos") self.ayuda.exec_()
def __init__(self): # Se llama al constructor de la clase padre QtGui.QDialog.__init__(self) # Se crea la instancia de Ui_Dialog self.ventana = Ui_AgreVar() self.ventana.setupUi(self) self.ventana.buttonBox.connect(self.ventana.buttonBox, SIGNAL("accepted()"),self, SLOT("accept()")) self.ventana.buttonBox.connect(self.ventana.buttonBox, SIGNAL("rejected()"),self, SLOT("reject()")) self.ventana.toolButton.connect(self.ventana.toolButton, SIGNAL("clicked()"),self, SLOT("popAyuda()"))