Commits

anatoly techtonik committed 6f30e42

03.button.py: rename 'window' -> 'button' as to be close button

  • Participants
  • Parent commits 0bd443f

Comments (0)

Files changed (1)

 
 app = QApplication([])
 
-# Create top level application window with button
-window = QPushButton('Window with button')
-window.show()
+# Create button (which is also top level window)
+button = QPushButton('Exit')
+button.show()
 
 # IMPORTANT: remember to assign GUI elements to variables or they
 # will be destroyed by PySide automatically