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()
...