summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-05-06 04:29:24 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-05-06 04:29:24 +0000
commit92d58558179beff08d52ac152c3a3da8a1a367cb (patch)
treea27f985c9c47590dd4bd9239ae7f30a9e39de5ae /qt-recordmydesktop/src
parente244fa2fbf637a901a0b850f8c5eacfd8896b571 (diff)
changed size of buttons in main window, added to them record/save/quit pixmaps
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@332 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src')
-rw-r--r--qt-recordmydesktop/src/rmdSimple.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/qt-recordmydesktop/src/rmdSimple.py b/qt-recordmydesktop/src/rmdSimple.py
index b64e48f..cd1a49e 100644
--- a/qt-recordmydesktop/src/rmdSimple.py
+++ b/qt-recordmydesktop/src/rmdSimple.py
@@ -80,7 +80,7 @@ class simpleWidget(object):
self.SEBox=QtGui.QHBoxLayout()
self.SWBox=QtGui.QHBoxLayout()
self.SBox.insertLayout(-1,self.SWBox)
- self.SBox.insertSpacing(-1,100)
+ self.SBox.insertStretch(-1,0)
self.SBox.insertLayout(-1,self.SEBox)
self.labelbox.insertLayout(-1,self.NBox)
@@ -125,11 +125,13 @@ class simpleWidget(object):
self.NESQBox.insertWidget(-1,self.s_quality)
self.NETABox.insertWidget(-1,self.advanced_button)
self.NETABox.insertWidget(-1,self.tipLabel)
+ style=QtGui.QApplication.style()
+ icon_rec_pxm=QtGui.QPixmap(os.path.join(rmdConfig.pixmapdir,"qt-recordmydesktop_record.png"))
self.win_button=QtGui.QPushButton(self.buttonStrings[1],self.window)
- self.start_button=QtGui.QPushButton(_("Record"),self.window)
- self.file_button=QtGui.QPushButton(_("Save As"),self.window)
- self.quit_button=QtGui.QPushButton(_("Quit"),self.window)
+ self.start_button=QtGui.QPushButton(QtGui.QIcon(icon_rec_pxm),_("Record"),self.window)
+ self.file_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogSaveButton)),_("Save As"),self.window)
+ self.quit_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogCloseButton)),_("Quit"),self.window)
self.SWBox.insertWidget(-1,self.win_button)
self.SWBox.insertWidget(-1,self.start_button)
self.SEBox.insertWidget(-1,self.file_button)
© All Rights Reserved