Tutorial by Examples

Suggested Install Method Windows: Download and run the binary setup file. Linux(Debian): Run this command in your command line: $ apt-get install python-qt4 pyqt4-dev-tools qt4-designer OS X : Run this command in your command line: $ brew install pyqt Install Manually You can also downloa...
The following example shows a basic main GUI window with a label widget, a toolbar, and a status bar using PyQt4. import sys from PyQt4 import QtGui class App(QtGui.QApplication): def __init__(self, sys_argv): super(App, self).__init__(sys_argv) self.build_ui() ...
This basic code will launch a "Hello world" GUI window using PyQt4: import sys from PyQt4 import QtGui # create instance of QApplication app = QtGui.QApplication(sys.argv) # create QLabel, without parent it will be shown as window label = QtGui.QLabel('Hello world!') label.show(...
Make a simple GUI application in 3 easy steps. 1. Design Open Qt Creator, create a new project and make your design. Save your result as .ui file (here: mainwindow.ui). 2. Generate corresponding .py file Now you can create a .py file from your .ui file that you generated in the previous step. ...

Page 1 of 1