Changeset 041cf9e in sasview


Ignore:
Timestamp:
Feb 14, 2011 11:03:50 AM (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:
5771ea3
Parents:
44ad7f5
Message:

add button reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_toolbar.py

    r03314e7 r041cf9e  
    7575        self.AddLabelTool(GUIFRAME_ID.ZOOM_ID, 'Zoom', zoom_bmp, 
    7676                   disable_zoom_bmp, button_type,'Zoom In') 
     77        self.AddSeparator() 
     78        reset_im = GUIFRAME_ICON.RESET_ICON 
     79        reset_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
     80        reset_bmp = reset_im.ConvertToBitmap() 
     81        #disable_reset_bmp = clear_image(reset_im).ConvertToBitmap() 
     82        disable_reset_bmp = wx.NullBitmap 
     83        self.AddLabelTool(GUIFRAME_ID.RESET_ID, 'Reset', reset_bmp, 
     84                   disable_reset_bmp, button_type,'Reset In') 
    7785        self.AddSeparator() 
    7886        drag_im = GUIFRAME_ICON.DRAG_ICON 
Note: See TracChangeset for help on using the changeset viewer.