Commits

anatoly techtonik committed 0bd443f

03.button.py: window with button that does nothing

  • Participants
  • Parent commits 016dbbb

Comments (0)

Files changed (1)

File 03.button.py

 
 # Absolutely minimal example of PySide application with button
 
-from PySide.QtGui import QApplication, QLabel
+from PySide.QtGui import QApplication, QPushButton
 
 app = QApplication([])
 
 # Create top level application window with button
-window = QLabel('Window from label')
+window = QPushButton('Window with button')
 window.show()
 
 # IMPORTANT: remember to assign GUI elements to variables or they