Changeset 7360816 in sasview for sansguiframe
- Timestamp:
- Oct 13, 2011 2:49:44 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:
- 99b86c1
- Parents:
- 9400de6
- Location:
- sansguiframe/src/sans/guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_panel.py
rd03a356 r7360816 279 279 self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory", 280 280 size=(BUTTON_WIDTH, -1)) 281 freeze_tip = "To trigger freeze a theory: making a copy to Data box,\n" 281 freeze_tip = "To trigger freeze a theory: making a copy\n" 282 freeze_tip += "of the theory checked to Data box,\n" 282 283 freeze_tip += " so that it can act like a real data set." 283 284 self.bt_freeze.SetToolTipString(freeze_tip) … … 299 300 (self.bt_remove), 300 301 ((10, 10)), 302 (self.bt_freeze), 303 ((10, 10)), 304 (self.bt_plot), 305 ((10, 10)), 306 (self.bt_append_plot), 307 (self.cb_plotpanel, wx.EXPAND|wx.ADJUST_MINSIZE, 5), 308 ((10, 10)), 309 ((10, 10)), 301 310 (self.bt_import, 0, wx.EXPAND|wx.RIGHT, 5), 302 (self.perspective_cbox, wx.EXPAND|wx.ADJUST_MINSIZE, 5), 303 (self.bt_append_plot), 304 (self.cb_plotpanel, wx.EXPAND|wx.ADJUST_MINSIZE, 5), 305 (self.bt_plot), 306 ((10, 10)), 307 (self.bt_freeze), 308 #((10, 10)), 309 #(self.bt_close_plot), 310 ((10, 10))]) 311 (self.perspective_cbox, wx.EXPAND|wx.ADJUST_MINSIZE, 5)]) 311 312 312 313 self.sizer3.AddGrowableCol(1, 1) … … 803 804 perspective = self.perspective_cbox.GetClientData(selection) 804 805 perspective.on_perspective(event=None) 805 806 flag = perspective.get_batch_capable() 807 flag_on = perspective.batch_on 808 if flag: 809 self.rb_single_mode.SetValue(not flag_on) 810 self.rb_batch_mode.SetValue(flag_on) 811 else: 812 self.rb_single_mode.SetValue(True) 813 self.rb_batch_mode.SetValue(False) 814 self.rb_single_mode.Enable(flag) 815 self.rb_batch_mode.Enable(flag) 816 806 817 def _on_plot_selection(self, event=None): 807 818 """ -
sansguiframe/src/sans/guiframe/plugin_base.py
r47ead24 r7360816 52 52 self.color = None 53 53 self.id = -1 54 54 self.batch_capable = self.get_batch_capable() 55 56 def get_batch_capable(self): 57 """ 58 Check if the plugin has a batch capability 59 """ 60 return False 61 55 62 def add_color(self, color, id): 56 63 """
Note: See TracChangeset
for help on using the changeset viewer.