Changeset 2997
- Timestamp:
- 03/28/2007 05:31:29 AM (2 years ago)
- Files:
-
- trunk/dabo/dApp.py (modified) (1 diff)
- trunk/dabo/ui/uiwx/dShell.py (modified) (1 diff)
- trunk/dabo/ui/uiwx/uiApp.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dApp.py
r2962 r2997 226 226 self._wasSetup = True 227 227 228 228 229 def startupForms(self): 229 230 # Open one or more of the defined forms. 231 # A default one is specified in .default_form. 232 # If form names were 233 # passed on the command line, they will be opened instead of the default one 234 # as long as they exist. 235 230 """Open one or more of the defined forms. The default one is specified 231 in .default_form. If form names were passed on the command line, 232 they will be opened instead of the default one as long as they exist. 233 """ 236 234 form_names = [class_name[3:] for class_name in dir(self.ui) if class_name[:3] == "Frm"] 237 235 for arg in sys.argv[1:]: trunk/dabo/ui/uiwx/dShell.py
r2968 r2997 347 347 348 348 def main(): 349 app = dabo.dApp( )349 app = dabo.dApp(BasePrefKey="dabo.ui.dShell") 350 350 app.MainFormClass = dShell 351 351 app.setup() trunk/dabo/ui/uiwx/uiApp.py
r2967 r2997 29 29 wx.Frame.__init__(self, None, -1, style=style) 30 30 31 self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) 31 32 if isinstance(bitmap, basestring): 32 33 # Convert it … … 74 75 try: 75 76 self.fc.Stop() 77 self.fc.Destroy() 76 78 except: 77 79 pass … … 194 196 195 197 198 # The following three functions handle font zooming 196 199 def fontZoomIn(self): 197 self.ActiveForm.iterateCall("fontZoomIn") 200 af = self.ActiveForm 201 if af: 202 af.iterateCall("fontZoomIn") 198 203 def fontZoomOut(self): 199 self.ActiveForm.iterateCall("fontZoomOut") 204 af = self.ActiveForm 205 if af: 206 af.iterateCall("fontZoomOut") 200 207 def fontZoomNormal(self): 201 self.ActiveForm.iterateCall("fontZoomNormal") 208 af = self.ActiveForm 209 if af: 210 af.iterateCall("fontZoomNormal") 211 202 212 203 213 def setup(self):
