Changeset 6d920cd in sasview for guiframe/gui_manager.py


Ignore:
Timestamp:
Feb 27, 2009 8:52:28 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
ed2ea6a
Parents:
8dddbd4
Message:

print statement removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r700f9b4 r6d920cd  
    3535    import config 
    3636     
    37 from sans.guicomm.events import EVT_STATUS,Model2DPanelEvent 
     37from sans.guicomm.events import EVT_STATUS 
    3838from sans.guicomm.events import EVT_NEW_PLOT,EVT_SLICER_PARS_UPDATE 
    3939import history 
     
    224224        self.defaultPanel    = DefaultPanel(self, -1, style=wx.RAISED_BORDER) 
    225225         
    226         # History panel 
    227         #self.histPanel     = history.HistoryPanel(self, style=wx.RAISED_BORDER) 
    228         # self.build_gui() 
    229226        
    230227        # Register the close event so it calls our own method 
     
    297294        """ 
    298295        import imp 
    299         print "Looking for plug-ins in %s" % dir 
     296        #print "Looking for plug-ins in %s" % dir 
    300297        # List of plug-in objects 
    301298         
     
    368365        # It also sets the size of the application windows 
    369366        self.panels["default"] = self.defaultPanel 
    370          # History panel 
    371         #self.panels["historyPanel"] = self.histPanel   
    372367         
    373368        self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). 
     
    378373                              MinSize(wx.Size(self._window_width, self._window_height)). 
    379374                              Show()) 
    380         """ 
    381         self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 
    382                           Name("historyPanel").Caption("History"). 
    383                           #Float(). 
    384                           Bottom(). 
    385                           Dock(). 
    386                           TopDockable(). 
    387                           BottomDockable(). 
    388                           LeftDockable(). 
    389                           RightDockable(). 
    390                           MinimizeButton(). 
    391                           Hide(). 
    392                           #Show(). 
    393                           BestSize(wx.Size(500,600)). 
    394                           MinSize(wx.Size(200,150))) 
    395         """ 
     375      
    396376 
    397377        # Add the panels to the AUI manager 
     
    410390                                          BestSize(wx.Size(600,600)). 
    411391                                          MinSize(wx.Size(400,400)). 
    412                                           #BestSize(wx.Size(500,500)). 
    413                                           #MinSize(wx.Size(200,200)). 
    414392                                          Hide()) 
    415393                 
     
    418396                self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 
    419397                                  Name(p.window_name).Caption(p.window_caption). 
    420                                   #Floatable(). 
    421                                   #Float(). 
    422398                                  Right(). 
    423399                                  Dock(). 
     
    428404                                  MinimizeButton(). 
    429405                                  Hide(). 
    430                                   #Show(). 
    431406                                  BestSize(wx.Size(600,600)). 
    432407                                  MinSize(wx.Size(500,500))) 
    433                                   #BestSize(wx.Size(400,400)). 
    434                                   #MinSize(wx.Size(300,300))) 
     408                                
    435409 
    436410                 
     
    516490        filemenu.Append(id, '&Open', 'Open a file') 
    517491        wx.EVT_MENU(self, id, self._on_open) 
    518          
    519         #id = wx.NewId() 
    520         #filemenu.Append(id, '&History', 'Register previous States') 
    521         #wx.EVT_MENU(self, id, self._onHistoryPanel) 
    522          
     492     
    523493        id = wx.NewId() 
    524494        filemenu.Append(id,'&Quit', 'Exit')  
     
    652622                 
    653623            self._mgr.Update() 
    654     """ 
    655     def _onHistoryPanel(self, event): 
    656         print "on history" 
    657         if not self._mgr.GetPane("historyPanel").IsShown(): 
    658             self._mgr.GetPane("historyPanel").Show() 
    659         self._mgr.Update() 
    660         return 
    661     """    
     624    
    662625    def _on_open(self, event): 
    663626    
Note: See TracChangeset for help on using the changeset viewer.