From 055e4794ae76300318a922c2ba1a3407a44603a9 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 7 Dec 2007 07:20:00 +0000 Subject: moved shortcuts from __init__ to __register_shortcuts__ git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@462 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/src/rmdPrefsWidget.py | 16 +++++++++------- 1 file 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]: -- cgit v1.2.3