Changeset 3200
- Timestamp:
- 06/22/2007 11:07:20 AM (2 years ago)
- Files:
-
- trunk/dabo/dApp.py (modified) (3 diffs)
- trunk/dabo/ui/uiwx/uiApp.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dApp.py
r3199 r3200 647 647 def onShowSizerLines(self, evt): 648 648 self.uiApp.onShowSizerLines(evt) 649 649 650 def onEditPreferences(self, evt): 650 651 try: 651 652 self.ActiveForm.onEditPreferences(evt) 652 653 except: 653 self.uiApp.onEditPreferences(evt) 654 if self.PreferenceDialogClass: 655 dlgPref = self.PreferenceDialogClass() 656 dlgPref.show() 657 if dlgPref.Modal: 658 dlgPref.release() 659 else: 660 dabo.infoLog.write(_("Stub: dApp.onEditPreferences()")) 661 654 662 # These handle MRU menu requests 655 663 def addToMRU(self, menu, prmpt, bindfunc=None, *args, **kwargs): … … 864 872 865 873 874 def _getPreferenceDialogClass(self): 875 return getattr(self, "_preferenceDialogClass", None) 876 877 def _setPreferenceDialogClass(self, val): 878 self._preferenceDialogClass = val 879 880 866 881 def _getSearchDelay(self): 867 882 try: … … 1039 1054 one of 'Mac', 'Win' or 'GTK'. (str)""") ) 1040 1055 1056 PreferenceDialogClass = property(_getPreferenceDialogClass, _setPreferenceDialogClass, None, 1057 _("""Specifies the dialog to use for the application's user preferences. 1058 1059 If None, the application will try to run the active form's onEditPreferences() 1060 method, if any. Otherwise, the preference dialog will be instantiated and 1061 shown when the user chooses to see the preferences.""")) 1062 1041 1063 SearchDelay = property(_getSearchDelay, _setSearchDelay, None, 1042 1064 _("""Specifies the delay before incrementeal searching begins. (int) trunk/dabo/ui/uiwx/uiApp.py
r3199 r3200 451 451 return ret 452 452 453 454 def onEditPreferences(self, evt):455 dabo.infoLog.write(_("Stub: uiApp.onEditPreferences()"))456 457 453 458 454 def onEditUndo(self, evt):
