Changeset 93fe7e2 in sasview


Ignore:
Timestamp:
Feb 7, 2011 1:56:36 PM (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:
f9f4b65
Parents:
1b3a5a9
Message:

working on guiframe toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_toolbar.py

    r1b3a5a9 r93fe7e2  
    2020        self.AddLabelTool(GUIFRAME_ID.SAVE_ID, 'Save', save_bmp, shortHelp='Save') 
    2121        self.AddSeparator() 
    22         self.image_book = wx.Image('images/bookmarks_list_add.png', 
    23                                  wx.BITMAP_TYPE_PNG) 
    24         bookmark_bmp =self.image_book.ConvertToBitmap() 
    25        
    2622        
    27         self.AddLabelTool(GUIFRAME_ID.BOOKMARK_ID, 'Bookmark', bookmark_bmp, 
    28                           shortHelp='Bookmark') 
    29         
     23        bookmark_bmp =  wx.ArtProvider.GetBitmap(wx.ART_ADD_BOOKMARK, wx.ART_TOOLBAR, 
     24                                                 size=tbar_size) 
     25        self.AddLabelTool(GUIFRAME_ID.BOOKMARK_ID, 'Bookmark', bookmark_bmp,shortHelp='Bookmark') 
    3026        self.AddSeparator() 
    31          
    3227        zoom_in_bmp = wx.ArtProvider.GetBitmap(wx.ART_GO_UP, wx.ART_TOOLBAR, 
    3328                                                size=tbar_size) 
     
    109104        self.button_application.SetLabel(str(application_name)) 
    110105        self.button_panel.SetLabel(str(panel_name)) 
    111         
     106        print "update_button", application_name, panel_name 
    112107    def update_toolbar(self, panel=None): 
    113108        """ 
    114109        """ 
    115110        if panel is None: 
     111            #self.Disable() 
    116112            self.EnableTool(GUIFRAME_ID.PRINT_ID, False) 
    117113            self.EnableTool(GUIFRAME_ID.UNDO_ID,False) 
Note: See TracChangeset for help on using the changeset viewer.