Changeset d0802c3 in sasview
- Timestamp:
- Jul 1, 2008 2:54:45 PM (16 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:
- a17ffdf
- Parents:
- d6113849
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r7681bac rd0802c3 174 174 Main application frame 175 175 """ 176 def __init__(self, parent, id, title ):176 def __init__(self, parent, id, title, window_height=800, window_width=800): 177 177 """ 178 178 Initialize the Frame object 179 179 """ 180 180 from local_perspectives.plotting import plotting 181 wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(1000, 1000)) 181 wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(800, 700)) 182 183 # Preferred window size 184 self._window_height = window_height 185 self._window_width = window_width 182 186 183 187 # Logging info … … 344 348 Name("default"). 345 349 CenterPane(). 346 BestSize(wx.Size(900,800)). 347 MinSize(wx.Size(800,700)). 350 # This is where we set the size of the application window 351 BestSize(wx.Size(self._window_width, self._window_height)). 352 MinSize(wx.Size(self._window_width, self._window_height)). 348 353 Show()) 349 354 … … 361 366 Name(p.window_name).Caption(p.window_caption). 362 367 CenterPane(). 363 BestSize(wx.Size( 600,600)).368 BestSize(wx.Size(500,500)). 364 369 MinSize(wx.Size(200,200)). 365 370 Hide()) … … 381 386 #Show(). 382 387 BestSize(wx.Size(400,400)). 383 MinSize(wx.Size(300,200))) 388 MinSize(wx.Size(300,300))) 389 384 390 385 391 … … 435 441 #Show(). 436 442 BestSize(wx.Size(400,400)). 437 MinSize(wx.Size(200,200))) 443 MinSize(wx.Size(350,350))) 444 pane = self._mgr.GetPane(windowname) 445 self._mgr.MaximizePane(pane) 446 self._mgr.RestoreMaximizedPane() 447 438 448 439 449 # Register for showing/hiding the panel -
guiframe/local_perspectives/plotting/plotting.py
r7bb61da rd0802c3 65 65 self.graph.render(self) 66 66 67 def _reset(self): 68 """ 69 Resets internal data and graph 70 """ 71 self.graph.reset() 72 self.plots = {} 73 self.action_ids = {} 74 67 75 def _onEVT_1DREPLOT(self, event): 68 76 """ … … 71 79 """ 72 80 #TODO: Check for existence of plot attribute 81 82 if hasattr(event, "reset"): 83 self._reset() 73 84 74 85 is_new = True
Note: See TracChangeset
for help on using the changeset viewer.