def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.uhodWidget = Ui_PrihodWidget() self.uhodWidget.setupUi(self) QtCore.QObject.connect(self.uhodWidget.addButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.showAddUhodWindow)
class UhodTab(QtGui.QWidget): def __init__(self, parent = None): QtGui.QWidget.__init__(self, parent) self.uhodWidget = Ui_PrihodWidget() self.uhodWidget.setupUi(self) QtCore.QObject.connect(self.uhodWidget.addButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.showAddUhodWindow) def showAddUhodWindow(self): addUhodWindow = addUhod(self) addUhodWindow.setWindowTitle('Уход - Новый Документ') addUhodWindow.show()
class UhodTab(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.uhodWidget = Ui_PrihodWidget() self.uhodWidget.setupUi(self) QtCore.QObject.connect(self.uhodWidget.addButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.showAddUhodWindow) def showAddUhodWindow(self): addUhodWindow = addUhod(self) addUhodWindow.setWindowTitle('Уход - Новый Документ') addUhodWindow.show()
def __init__(self, parent = None): QtGui.QWidget.__init__(self, parent) self.uhodWidget = Ui_PrihodWidget() self.uhodWidget.setupUi(self) QtCore.QObject.connect(self.uhodWidget.addButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.showAddUhodWindow)