diff options
| author | Renato Filho <renato.filho@openbossa.org> | 2010-05-19 19:13:55 -0300 |
|---|---|---|
| committer | Renato Filho <renato.filho@openbossa.org> | 2010-05-19 19:15:45 -0300 |
| commit | 493468febb9a8b5aac80cf9f64e5338d013561a7 (patch) | |
| tree | bfeef1c086cb24f870f43edf614e4f01055c1fed /examples/tutorial/t7.py | |
| parent | abd1aa9f2e4d02f908e86b0ca152685d9a55d9dc (diff) | |
Fixed tutorial examples.
Diffstat (limited to 'examples/tutorial/t7.py')
| -rwxr-xr-x | examples/tutorial/t7.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/tutorial/t7.py b/examples/tutorial/t7.py index ef9ef45..74629b0 100755 --- a/examples/tutorial/t7.py +++ b/examples/tutorial/t7.py @@ -47,6 +47,12 @@ class MyWidget(QtGui.QWidget): grid = QtGui.QGridLayout() previousRange = None + + layout = QtGui.QVBoxLayout() + layout.addWidget(quit) + layout.addLayout(grid) + self.setLayout(layout) + for row in range(3): for column in range(3): lcdRange = LCDRange() @@ -58,10 +64,6 @@ class MyWidget(QtGui.QWidget): previousRange = lcdRange - layout = QtGui.QVBoxLayout() - layout.addWidget(quit) - layout.addLayout(grid) - self.setLayout(layout) app = QtGui.QApplication(sys.argv) |
