Changeset db10f97 in sasview for guiframe/gui_manager.py


Ignore:
Timestamp:
Apr 12, 2010 11:03:12 AM (14 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:
f304194
Parents:
b7f29fc
Message:

working on statusbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    rba535a6 rdb10f97  
    2323import os, sys 
    2424import xml 
     25 
    2526try: 
    2627    # Try to find a local config 
     
    4546 
    4647import logging 
    47  
    48  
    4948 
    5049def quit_guiframe(parent=None): 
     
    279278        """ 
    280279        # Status bar 
    281         from statusbar import MyStatusBar 
    282         self.sb = MyStatusBar(self,wx.ID_ANY) 
     280        from statusbar import StatusBar 
     281        self.sb = StatusBar(self, wx.ID_ANY) 
    283282        self.SetStatusBar(self.sb) 
    284283 
     
    291290         
    292291        self._mgr.Update() 
     292         
     293    def SetStatusText(self, *args, **kwds): 
     294        number = self.sb.get_msg_position() 
     295        wx.Frame.SetStatusText(number=number, *args, **kwds) 
     296         
     297    def PopStatusText(self, *args, **kwds): 
     298        field = self.sb.get_msg_position() 
     299        wx.Frame.PopStatusText(field=field) 
     300         
     301    def PushStatusText(self, *args, **kwds): 
     302        field = self.sb.get_msg_position() 
     303        wx.Frame.PushStatusText(self, field=field,string=string) 
    293304 
    294305    def add_perspective(self, plugin): 
     
    613624            Display status message 
    614625        """ 
    615         #self.sb.clear_gauge( msg="") 
    616         mythread=None 
    617         mytype= None 
    618         if hasattr(evt, "curr_thread"): 
    619             mythread= evt.curr_thread 
    620         if hasattr(evt, "type"): 
    621             mytype= evt.type 
    622         self.sb.set_status( type=mytype,msg=str(evt.status),thread=mythread) 
     626        self.sb.set_status(event=evt) 
    623627        
    624  
    625          
    626628    def _on_view(self, evt): 
    627629        """ 
Note: See TracChangeset for help on using the changeset viewer.