diff options
-rw-r--r-- | qt-recordmydesktop/src/rmdSimple.py | 10 |
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) |