Changeset 49a2aa71 in sasview for guiframe/gui_toolbar.py
- Timestamp:
- May 10, 2011 4:18:05 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_toolbar.py
r0d54b58 r49a2aa71 60 60 disable_reset_bmp, button_type,'Reset') 61 61 self.AddSeparator() 62 drag_im = GUIFRAME_ICON.DRAG_ICON63 drag_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH)64 drag_bmp = drag_im.ConvertToBitmap()65 self.AddSeparator()66 62 save_im = GUIFRAME_ICON.SAVE_ICON 67 63 save_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) … … 79 75 disable_report_bmp, button_type,'Report') 80 76 self.AddSeparator() 81 print_im = GUIFRAME_ICON.PRINT_ICON82 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.NullBitmap86 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() 89 85 undo_im = GUIFRAME_ICON.UNDO_ICON 90 86 undo_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) … … 164 160 self.parent.Bind(wx.EVT_TOOL, self.parent.on_preview_panel, 165 161 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) 168 164 169 165 def update_button(self, application_name='', panel_name=''): … … 177 173 """ 178 174 if panel is None: 179 self.EnableTool(GUIFRAME_ID.PRINT_ID, False)175 #self.EnableTool(GUIFRAME_ID.PRINT_ID, False) 180 176 self.EnableTool(GUIFRAME_ID.UNDO_ID,False) 181 177 self.EnableTool(GUIFRAME_ID.REDO_ID, False) … … 186 182 187 183 else: 188 self.EnableTool(GUIFRAME_ID.PRINT_ID, panel.get_print_flag())184 #self.EnableTool(GUIFRAME_ID.PRINT_ID, panel.get_print_flag()) 189 185 self.EnableTool(GUIFRAME_ID.UNDO_ID, panel.get_undo_flag()) 190 186 self.EnableTool(GUIFRAME_ID.REDO_ID, panel.get_redo_flag())
Note: See TracChangeset
for help on using the changeset viewer.