Changeset 3405
- Timestamp:
- 09/27/07 06:21:52 (1 year ago)
- Files:
-
- trunk/dabo/dApp.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dApp.py
r3366 r3405 827 827 828 828 def onEditPreferences(self, evt): 829 try: 830 self.ActiveForm.onEditPreferences(evt) 831 except: 832 if self.PreferenceDialogClass: 833 dlgPref = self.PreferenceDialogClass() 834 dlgPref.show() 835 if dlgPref.Modal: 836 dlgPref.release() 837 else: 838 dabo.infoLog.write(_("Stub: dApp.onEditPreferences()")) 829 self.uiApp.onEditPreferences(evt) 839 830 840 831 # These handle MRU menu requests … … 851 842 852 843 853 def onWebUpdatePrefs(self, evt):854 self.uiApp.onWebUpdatePrefs(evt)855 856 def showWebUpdatePrefs(self):857 self.onWebUpdatePrefs(None)858 859 844 def onHelpAbout(self, evt): 860 845 about = self.AboutFormClass … … 1125 1110 1126 1111 1127 def _getShowWebUpdateMenu(self):1128 v = getattr(self, "_showWebUpdateMenu", None)1129 if v is None:1130 v = self._showWebUpdateMenu = True1131 return v1132 1133 def _setShowWebUpdateMenu(self, val):1134 self._showWebUpdateMenu = bool(val)1135 1136 1137 1112 def _getUI(self): 1138 1113 try: … … 1304 1279 available in the base menu.""") ) 1305 1280 1306 ShowWebUpdateMenu = property(_getShowWebUpdateMenu, _setShowWebUpdateMenu, None,1307 _("""Specifies whether the web update option is shown in the menu.1308 1309 If True (the default), there will be a Web Update Options menu item in1310 the Help menu. If False, your code can still start the Web Update Options1311 screen by calling app.showWebUpdatePrefs() directly.""") )1312 1313 1281 UI = property(_getUI, _setUI, None, 1314 1282 _("""Specifies the user interface to load, or None. (str)
