summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-07 07:20:00 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-07 07:20:00 +0000
commit055e4794ae76300318a922c2ba1a3407a44603a9 (patch)
treec619b40af709812874d6afd5a8bc8b52f87c222e
parent0627c4a4f080450db432edda78eba1a55358b2a1 (diff)
moved shortcuts from __init__ to __register_shortcuts__
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@462 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r--qt-recordmydesktop/src/rmdPrefsWidget.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py
index 3824822..68ffc55 100644
--- a/qt-recordmydesktop/src/rmdPrefsWidget.py
+++ b/qt-recordmydesktop/src/rmdPrefsWidget.py
@@ -350,13 +350,7 @@ class prefsWidget(object):
self.jack_lsp_refresh.setEnabled(val)
if(val):
self.__runJackLSP__()
-
- def __init__(self,values,optionsOpen):
- self.values=values
- self.ports=[]
- self.optionsOpen=optionsOpen
- self.window = QtGui.QWidget()
- self.window.closeEvent= self.destroy
+ def __register_shortcuts__(self):
esc_sh=QtGui.QShortcut(QtGui.QKeySequence("Esc"),self.window)
self.window.connect(esc_sh,
QtCore.SIGNAL("activated()"),
@@ -367,9 +361,17 @@ class prefsWidget(object):
QtCore.SIGNAL("activated()"),
self.window,
QtCore.SLOT("close()"))
+
+ def __init__(self,values,optionsOpen):
+ self.values=values
+ self.ports=[]
+ self.optionsOpen=optionsOpen
+ self.window = QtGui.QWidget()
+ self.window.closeEvent= self.destroy
self.window.setWindowTitle("recordMyDesktop: "+smplButtonStrings[0])
self.__subWidgets__()
self.__makeCons__()
+ self.__register_shortcuts__()
self.__runJackLSP__()
self.__jack_enabled_check__()
for i in self.values[23]:
© All Rights Reserved