Changeset 1b3a5a9 in sasview


Ignore:
Timestamp:
Feb 7, 2011 3:46:22 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:
93fe7e2
Parents:
68d48fa
Message:

working on toolbar

Location:
guiframe
Files:
14 added
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r73b3ae2 r1b3a5a9  
    14971497    ## Flag to tell the AUI manager to put this panel in the center pane 
    14981498    CENTER_PANE = True 
     1499    def __init__(self, parent, *args, **kwds): 
     1500        wx.Panel.__init__(self, parent, *args, **kwds) 
     1501        PanelBase.__init__(self, parent) 
    14991502     
    15001503 
  • guiframe/gui_toolbar.py

    r73b3ae2 r1b3a5a9  
    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       
    2226        
    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') 
     27        self.AddLabelTool(GUIFRAME_ID.BOOKMARK_ID, 'Bookmark', bookmark_bmp, 
     28                          shortHelp='Bookmark') 
     29        
    2630        self.AddSeparator() 
     31         
    2732        zoom_in_bmp = wx.ArtProvider.GetBitmap(wx.ART_GO_UP, wx.ART_TOOLBAR, 
    2833                                                size=tbar_size) 
     
    104109        self.button_application.SetLabel(str(application_name)) 
    105110        self.button_panel.SetLabel(str(panel_name)) 
    106         print "update_button", application_name, panel_name 
     111        
    107112    def update_toolbar(self, panel=None): 
    108113        """ 
    109114        """ 
    110115        if panel is None: 
    111             #self.Disable() 
    112116            self.EnableTool(GUIFRAME_ID.PRINT_ID, False) 
    113117            self.EnableTool(GUIFRAME_ID.UNDO_ID,False) 
Note: See TracChangeset for help on using the changeset viewer.