PyQt je Pythonovské rozhraní pro Qt.
otevře MessageBox s ikonou critical a tlačítkem OK
from PyQt4 import QtGui msg_box = QtGui.QMessageBox(QtGui.QMessageBox.Critical, "title", "text", QtGui.QMessageBox.Ok) msg_box.exec_()
umožní překlad řetězce
QtGui.QApplication.translate("kategorie", "text", None, QtGui.QApplication.UnicodeUTF8)
propojí signál akce z menu se slotem
self.connect(ui.actionOpen, QtCore.SIGNAL("triggered ( bool )"), self.__open)