1. from PyQt4 import QtGui
  2.  
  3. class Deck(QtGui.QWidget):
  4.  
  5.     def __init__(self, filename, parent):
  6.         super(Deck, self).__init__(parent)
  7.  
  8.         self.setMinimumSize(100, 150)
  9.         self.setStyleSheet('background-color: yellow;')
  10.  
  11.         label = QtGui.QLabel("deck", self)
  12.         label.show()
  13.  
  14. app = QtGui.QApplication([])
  15. main = Deck(None, None)
  16. main.show()
  17. app.exec_()