The PyQt button does not show up
问题 So....I am using the PyQt lib for python to make a Graphics class which abstracts away most of the features of the QtGui class.I"ll be using it later for my other projects.This seems to be working fine,except that the button and the other widgets do not show up,although the window gets created. import sys from PyQt4 import QtGui class Graphics: def __init__(self): self.app=QtGui.QApplication(sys.argv) self.widgets={} self.labels={} self.buttons={} def getApp(self): return self.app def