Changeset f1aa385 in sasview
- 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
- Files:
-
- 4 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 -
sansview/welcome_panel.py
rea2aa224 rf1aa385 15 15 import wx.lib.hyperlink 16 16 import os.path 17 import os 18 17 import os, sys 19 18 import local_config as config 20 19 20 #Font size width 21 if sys.platform.count("win32")>0: 22 FONT_VARIANT = 0 23 else: 24 FONT_VARIANT = 1 25 21 26 class WelcomePanel(wx.Panel): 22 27 """ … … 30 35 ## Flag to tell the AUI manager to put this panel in the center pane 31 36 CENTER_PANE = True 37 32 38 33 39 def __init__(self, *args, **kwds): … … 39 45 image = os.path.join("images","SVwelcome.png") 40 46 47 self.SetWindowVariant(variant = FONT_VARIANT) 41 48 self.bitmap_logo = wx.StaticBitmap(self, -1, wx.Bitmap(image)) 42 49
Note: See TracChangeset
for help on using the changeset viewer.