Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 13th, 2013  |  syntax: Python  |  size: 0.38 KB  |  views: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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_()
clone this paste RAW Paste Data