Changeset 49a2aa71 in sasview


Ignore:
Timestamp:
May 10, 2011 4:18:05 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
25c1576
Parents:
0d54b58
Message:

removed print icon from toolbar which is never used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_toolbar.py

    r0d54b58 r49a2aa71  
    6060                   disable_reset_bmp, button_type,'Reset') 
    6161        self.AddSeparator() 
    62         drag_im = GUIFRAME_ICON.DRAG_ICON 
    63         drag_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
    64         drag_bmp = drag_im.ConvertToBitmap() 
    65         self.AddSeparator() 
    6662        save_im = GUIFRAME_ICON.SAVE_ICON 
    6763        save_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
     
    7975                   disable_report_bmp, button_type,'Report') 
    8076        self.AddSeparator() 
    81         print_im = GUIFRAME_ICON.PRINT_ICON 
    82         print_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
    83         print_bmp = print_im.ConvertToBitmap() 
    84         #disable_print_bmp = clear_image(print_im).ConvertToBitmap() 
    85         disable_print_bmp = wx.NullBitmap 
    86         self.AddLabelTool(GUIFRAME_ID.PRINT_ID, 'Print', print_bmp, 
    87                           disable_print_bmp, button_type, 'Print') 
    88         self.AddSeparator() 
     77        #print_im = GUIFRAME_ICON.PRINT_ICON 
     78        #print_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
     79        #print_bmp = print_im.ConvertToBitmap() 
     80         
     81        #disable_print_bmp = wx.NullBitmap 
     82        #self.AddLabelTool(GUIFRAME_ID.PRINT_ID, 'Print', print_bmp, 
     83        #                  disable_print_bmp, button_type, 'Print') 
     84        #self.AddSeparator() 
    8985        undo_im = GUIFRAME_ICON.UNDO_ICON 
    9086        undo_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 
     
    164160            self.parent.Bind(wx.EVT_TOOL, self.parent.on_preview_panel, 
    165161                             id=GUIFRAME_ID.PREVIEW_ID) 
    166             self.parent.Bind(wx.EVT_TOOL, self.parent.on_print_panel, 
    167                              id=GUIFRAME_ID.PRINT_ID) 
     162            #self.parent.Bind(wx.EVT_TOOL, self.parent.on_print_panel, 
     163            #                 id=GUIFRAME_ID.PRINT_ID) 
    168164             
    169165    def update_button(self, application_name='', panel_name=''): 
     
    177173        """ 
    178174        if panel is None: 
    179             self.EnableTool(GUIFRAME_ID.PRINT_ID, False) 
     175            #self.EnableTool(GUIFRAME_ID.PRINT_ID, False) 
    180176            self.EnableTool(GUIFRAME_ID.UNDO_ID,False) 
    181177            self.EnableTool(GUIFRAME_ID.REDO_ID, False) 
     
    186182             
    187183        else: 
    188             self.EnableTool(GUIFRAME_ID.PRINT_ID, panel.get_print_flag()) 
     184            #self.EnableTool(GUIFRAME_ID.PRINT_ID, panel.get_print_flag()) 
    189185            self.EnableTool(GUIFRAME_ID.UNDO_ID, panel.get_undo_flag()) 
    190186            self.EnableTool(GUIFRAME_ID.REDO_ID, panel.get_redo_flag()) 
Note: See TracChangeset for help on using the changeset viewer.