Answer the question
In order to leave comments, you need to log in
What are the fundamental features of running a python script from IDLE under windows?
Pyrhon 3.4, PyQt4, Windows 8.1
I have a project with two forms:
First:
class MyForm(QtGui.QMainWindow,Ui_Topiq):
logShow = pyqtSignal()
def __init__(self, parent=None):
super(MyForm,self).__init__(parent)
self.setupUi(self)
#Делаем стартовое окошко установленным на первый слой виждетов
self.stackedWidget.setCurrentIndex(0);
....
class LogWindow(QtGui.QWidget,Ui_Log):
def __init__(self,parent=None):
super(LogWindow,self).__init__(parent)
self.setupUi(self)
...
if __name__ == "__main__":
...
app = QtGui.QApplication(sys.argv)
mainWindow = MyForm()
log_ = LogWindow()
#добавляем обработчик клика по статус-бару
mainWindow.logShow.connect(log_.show)
mainWindow.show()
sys.exit(app.exec_())
#добавляем обработчик клика по статус-бару
#mainWindow.logShow.connect(log_.show)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question