Changeset 1386
- Timestamp:
- Jul 1, 2013 1:08:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified moxy/trunk/src/moxy/qtlib/prefs.py ¶
r1385 r1386 74 74 app = QtGui.QApplication(sys.argv) 75 75 76 panel = QtGui.QWidget() 77 78 layout = QtGui.QVBoxLayout() 79 panel.setLayout(layout) 80 81 btn = QtGui.QPushButton('click me') 82 btn.released.connect(handler) 83 layout.addWidget(btn) 84 85 panel.show() 86 87 sys.exit(app.exec_()) 88 89 90 def handler(): 91 print 'clicked!' 76 92 panel = PreferencesDialog() 77 93 … … 79 95 result = panel.exec_() 80 96 print result, panel.btn_value 81 sys.exit(app.exec_()) 97 82 98 83 99 # - - - - - - - - - - - - - - - - - - main
Note: See TracChangeset
for help on using the changeset viewer.