Changeset 07dd0b4 in sasview
- Timestamp:
- Oct 20, 2011 2:44:39 PM (13 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:
- b837e1f
- Parents:
- 2d98490
- Location:
- sansguiframe/src/sans/guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_statusbar.py
r2d98490 r07dd0b4 4 4 import wx.richtext 5 5 import time 6 from sans.guiframe.gui_style import GUIFRAME_ICON 6 7 #numner of fields of the status bar 7 8 NB_FIELDS = 4 … … 137 138 self.list_msg = [] 138 139 self.frame = Console(parent=self) 140 if hasattr(self.frame, "IsIconized"): 141 if not self.frame.IsIconized(): 142 try: 143 icon = self.parent.GetIcon() 144 self.frame.SetIcon(icon) 145 except: 146 try: 147 FRAME_ICON = wx.Icon(GUIFRAME_ICON.FRAME_ICON_PATH, 148 wx.BITMAP_TYPE_ICON) 149 self.frame.SetIcon(FRAME_ICON) 150 except: 151 pass 139 152 self.frame.set_multiple_messages(self.list_msg) 140 153 self.frame.Hide() … … 249 262 """ 250 263 if hasattr(event, "status"): 251 status = str( status)264 status = str(event.status) 252 265 if status.strip() == "": 253 266 return -
sansguiframe/src/sans/guiframe/gui_style.py
r8c347a6 r07dd0b4 40 40 class GUIFRAME_ICON: 41 41 PATH = get_data_path(media='images') 42 FRAME_ICON_PATH = os.path.join(PATH, 'ball.ico') 42 43 SAVE_ICON_PATH = os.path.join(PATH, 'save.png') 43 44 UNDO_ICON_PATH = os.path.join(PATH, 'undo.png') … … 54 55 PRINT_ID_PATH = os.path.join(PATH, 'printer.png') 55 56 57 56 58 SAVE_ICON = wx.Image(os.path.join(PATH, 'save.png')) 57 59 UNDO_ICON = wx.Image(os.path.join(PATH, 'undo.png'))
Note: See TracChangeset
for help on using the changeset viewer.