Changeset 07dd0b4 in sasview for sansguiframe/src


Ignore:
Timestamp:
Oct 20, 2011 2:44:39 PM (13 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:
b837e1f
Parents:
2d98490
Message:

add icon to console

Location:
sansguiframe/src/sans/guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_statusbar.py

    r2d98490 r07dd0b4  
    44import wx.richtext 
    55import time 
     6from sans.guiframe.gui_style import GUIFRAME_ICON 
    67#numner of fields of the status bar  
    78NB_FIELDS = 4 
     
    137138        self.list_msg = [] 
    138139        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 
    139152        self.frame.set_multiple_messages(self.list_msg) 
    140153        self.frame.Hide() 
     
    249262        """ 
    250263        if hasattr(event, "status"): 
    251             status = str(status) 
     264            status = str(event.status) 
    252265            if status.strip() == "": 
    253266                return 
  • sansguiframe/src/sans/guiframe/gui_style.py

    r8c347a6 r07dd0b4  
    4040class GUIFRAME_ICON: 
    4141    PATH = get_data_path(media='images') 
     42    FRAME_ICON_PATH = os.path.join(PATH, 'ball.ico') 
    4243    SAVE_ICON_PATH = os.path.join(PATH, 'save.png') 
    4344    UNDO_ICON_PATH = os.path.join(PATH, 'undo.png') 
     
    5455    PRINT_ID_PATH = os.path.join(PATH, 'printer.png') 
    5556     
     57   
    5658    SAVE_ICON = wx.Image(os.path.join(PATH, 'save.png')) 
    5759    UNDO_ICON = wx.Image(os.path.join(PATH, 'undo.png')) 
Note: See TracChangeset for help on using the changeset viewer.