Getting started with pyqt4

Basic Hello World Program

import sys
from PyQt4 import QtGui

def window():
   app = QtGui.QApplication(sys.argv)
   w = QtGui.QWidget()
   b = QtGui.QLabel(w)
   b.setText("<h1>Welcome to PyQt4 SO Documentation!</h1>")
   w.setWindowTitle("PyQt4 Hello World Demo")
if __name__ == '__main__':

Installation or Setup

Detailed instructions on getting pyqt4 set up or installed.

  1. Windows Link
  2. Mac Link
  3. Linux Link

If you want to install the version specific to your system python version and you system configuration(32-bit or 64-bit) then go to this link and download and install the package. You can install the .whl file simply by going to command prompt pip install PyQt4‑4.11.4‑cp34‑none‑win_amd64.whl.

Go a head Install the software and Start Building Awesome GUI!!