- Timestamp:
- May 11, 2011 3:06:46 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 0b22cc6
- Parents:
- 732b03c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r732b03c rb46b1b9 2268 2268 logging.error(msg) 2269 2269 return True 2270 self.Bind(wx.EVT_ACTIVATE_APP, self.OnActivate) 2271 2270 2272 2271 def open_file(self): 2273 2272 """ … … 2399 2398 self.frame.Show(True) 2400 2399 event.Skip() 2401 2402 def OnActivate(self, event): 2403 # if this is an activate event, rather than something else, like iconize. 2404 if event.GetActive(): 2405 self.BringWindowToFront() 2406 event.Skip() 2407 2408 def BringWindowToFront(self): 2409 try: # it's possible for this event to come when the frame is closed 2410 self.GetTopWindow().Raise() 2411 except: 2412 pass 2413 2414 def MacReopenApp(self): 2415 """Called when the doc icon is clicked, and ???""" 2416 self.BringWindowToFront() 2417 2400 2418 2401 if __name__ == "__main__": 2419 2402 app = ViewApp(0)
Note: See TracChangeset
for help on using the changeset viewer.