Changeset db10f97 in sasview for guiframe/gui_manager.py
- Timestamp:
- Apr 12, 2010 11:03:12 AM (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:
- f304194
- Parents:
- b7f29fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
rba535a6 rdb10f97 23 23 import os, sys 24 24 import xml 25 25 26 try: 26 27 # Try to find a local config … … 45 46 46 47 import logging 47 48 49 48 50 49 def quit_guiframe(parent=None): … … 279 278 """ 280 279 # Status bar 281 from statusbar import MyStatusBar282 self.sb = MyStatusBar(self,wx.ID_ANY)280 from statusbar import StatusBar 281 self.sb = StatusBar(self, wx.ID_ANY) 283 282 self.SetStatusBar(self.sb) 284 283 … … 291 290 292 291 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) 293 304 294 305 def add_perspective(self, plugin): … … 613 624 Display status message 614 625 """ 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) 623 627 624 625 626 628 def _on_view(self, evt): 627 629 """
Note: See TracChangeset
for help on using the changeset viewer.