Changeset f1aa385 in sasview for sansview/perspectives
- Timestamp:
- Nov 10, 2009 4:32:28 PM (15 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:
- c69b6d5
- Parents:
- ffb838f
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rc985bef rf1aa385 20 20 if sys.platform.count("win32")>0: 21 21 PANEL_WIDTH = 450 22 FONT_VARIANT = 0 22 23 else: 23 24 PANEL_WIDTH = 500 25 FONT_VARIANT = 1 24 26 25 27 class BasicPage(wx.ScrolledWindow): … … 35 37 wx.ScrolledWindow.__init__(self, parent, 36 38 style= wx.FULL_REPAINT_ON_RESIZE ) 39 #Set window's font size 40 self.SetWindowVariant(variant=FONT_VARIANT) 37 41 ##window_name 38 42 self.window_name = page_info.window_name … … 745 749 self.enable2D= state.enable2D 746 750 self.engine_type = state.engine_type 747 751 748 752 #??? 749 753 self.disp_cb_dict = state.disp_cb_dict … … 819 823 820 824 else: 821 825 keys = self.model.getParamList() 826 for item in keys: 827 if item in self.disp_list and not self.model.details.has_key(item): 828 self.model.details[item]=["",None,None] 822 829 for k,v in self.state.disp_cb_dict.iteritems(): 823 830 self.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) … … 832 839 self.disable_smearer.SetValue(state.disable_smearer) 833 840 self.onSmear(event=None) 834 self.tcChi.SetLabel(str( state.tcChi)) 835 self.sizer5.Layout() 836 self.Layout() 837 self.Refresh() 838 841 self.tcChi.SetLabel(str( state.tcChi)) 839 842 840 843 ## reset state of checkbox,textcrtl and dispersity parameters value … … 879 882 item[4].Clear() 880 883 item[4].Hide() 881 ##Is this layout necessary? Had a problem w/MAC .884 ##Is this layout necessary? Had a problem w/MAC:Not anymore. 882 885 #self.Layout() 883 886 … … 1579 1582 #draw the model with the current dispersity 1580 1583 self._draw_model() 1581 #self.sizer4_4.Layout()1582 #self.sizer5.Layout()1584 self.sizer4_4.Layout() 1585 self.sizer5.Layout() 1583 1586 self.Layout() 1584 #self.Refresh() 1585 #self.SetScrollbars(20,20,25,65) 1587 #self.Refresh() 1586 1588 1587 1589 -
sansview/perspectives/fitting/simfitpage.py
rc99a6c5 rf1aa385 7 7 if sys.platform.count("win32")>0: 8 8 PANEL_WID = 420 9 FONT_VARIANT = 0 9 10 else: 10 11 PANEL_WID = 490 11 12 FONT_VARIANT = 1 12 13 13 14 def get_fittableParam( model): … … 44 45 Simultaneous page display 45 46 """ 47 ##Font size 48 self.SetWindowVariant(variant = FONT_VARIANT) 49 46 50 self.parent = parent 47 51 ## store page_finder -
sansview/perspectives/fitting/sldPanel.py
rc99a6c5 rf1aa385 19 19 _STATICBOX_WIDTH = 350 20 20 PANEL_SIZE = 400 21 FONT_VARIANT = 0 21 22 else: 22 23 _STATICBOX_WIDTH = 380 23 24 PANEL_SIZE = 430 24 25 FONT_VARIANT = 1 26 25 27 class SldPanel(wx.Panel): 26 28 """ … … 29 31 def __init__(self, parent,base=None, id = -1): 30 32 wx.Panel.__init__(self, parent, id = id) 33 #Font size 34 self.SetWindowVariant(variant=FONT_VARIANT) 35 31 36 # Object that receive status event 32 37 self.base= base
Note: See TracChangeset
for help on using the changeset viewer.