diff options
author | igor_bogomolov <qivb18@gmail.com> | 2011-12-29 21:26:40 +0400 |
---|---|---|
committer | Paulo Alcantara <pcacjr@gmail.com> | 2012-01-04 13:52:18 -0300 |
commit | 56dfc1ba5f4f50f2f125e1c29f7fe57a64fa73dc (patch) | |
tree | 95b5d2e03c360be72537d6659e4e4f2957f88196 | |
parent | e8b36d5ee1916a6f5725a6520d443a75bac0bda8 (diff) |
Fix bug in widgets/styles example
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Reviewed-by: Paulo Alcantara <pcacjr@gmail.com>
-rwxr-xr-x | examples/widgets/styles.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/styles.py b/examples/widgets/styles.py index 66610a7..09416ec 100755 --- a/examples/widgets/styles.py +++ b/examples/widgets/styles.py @@ -143,7 +143,7 @@ class WidgetGallery(QtGui.QDialog): tableWidget = QtGui.QTableWidget(10, 10) tab1hbox = QtGui.QHBoxLayout() - tab1hbox.setMargin(5) + tab1hbox.setContentsMargins(5, 5, 5, 5) tab1hbox.addWidget(tableWidget) tab1.setLayout(tab1hbox) @@ -158,7 +158,7 @@ class WidgetGallery(QtGui.QDialog): "How I wonder what you are!\n") tab2hbox = QtGui.QHBoxLayout() - tab2hbox.setMargin(5) + tab2hbox.setContentsMargins(5, 5, 5, 5) tab2hbox.addWidget(textEdit) tab2.setLayout(tab2hbox) |