From 22ee15e51f6d72560af37fad744662161e284eb9 Mon Sep 17 00:00:00 2001 From: iovar Date: Sun, 2 Dec 2007 00:47:55 +0000 Subject: rmdPrefsWidget.py: fixed layout of advanced window git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@451 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/src/rmdPrefsWidget.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'qt-recordmydesktop/src') diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py index 6c3ed78..44d5ae2 100644 --- a/qt-recordmydesktop/src/rmdPrefsWidget.py +++ b/qt-recordmydesktop/src/rmdPrefsWidget.py @@ -108,9 +108,17 @@ class prefsWidget(object): self.labelbox={} self.tabWidgets={} self.notebook = QtGui.QTabWidget(self.window) + self.baseLayout=QtGui.QVBoxLayout(self.window) + self.baseLayout.setSpacing(0) + try: + self.baseLayout.setContentsMargins(0,9,0,0) + except: + self.baseLayout.setMargin(0) + self.window.setLayout(self.baseLayout) + for i in range(4): - self.labelbox[i]=QtGui.QVBoxLayout() - self.tabWidgets[i]=QtGui.QWidget() + self.tabWidgets[i]=QtGui.QWidget(self.notebook) + self.labelbox[i]=QtGui.QVBoxLayout(self.tabWidgets[i]) #Files page for i in range(2): self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[0]) @@ -267,7 +275,8 @@ class prefsWidget(object): for i in range(4): self.tabWidgets[i].setLayout(self.labelbox[i]) self.notebook.insertTab(-1,self.tabWidgets[i],prefTabStrings[i]) - self.notebook.show() + + self.baseLayout.addWidget(self.notebook) return def addPort(self,lwi): -- cgit v1.2.3