Changeset eaab2ad in sasview for invariantview/perspectives/invariant
- Timestamp:
- Apr 29, 2011 3:29:43 PM (14 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:
- de99e3e4
- Parents:
- 7d16278
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
r7d16278 reaab2ad 41 41 42 42 if sys.platform.count("win32") > 0: 43 _STATICBOX_WIDTH = 4 0043 _STATICBOX_WIDTH = 420 44 44 PANEL_WIDTH = 500 45 45 PANEL_HEIGHT = 700 46 46 FONT_VARIANT = 0 47 47 else: 48 _STATICBOX_WIDTH = 4 3048 _STATICBOX_WIDTH = 450 49 49 PANEL_WIDTH = 530 50 50 PANEL_HEIGHT = 700 … … 1281 1281 style=0) 1282 1282 self.data_name_tcl.SetToolTipString("Data's name.") 1283 self.data_name_sizer.AddMany([(data_name_txt, 0, wx.LEFT|wx.RIGHT, 5),1283 self.data_name_sizer.AddMany([(data_name_txt, 0, wx.LEFT|wx.RIGHT, 10), 1284 1284 (self.data_name_tcl, 0, wx.EXPAND)]) 1285 1285 #Data range [string] … … 1295 1295 self.data_range_sizer.AddMany([(data_range_txt, 0, wx.RIGHT, 5), 1296 1296 (data_min_txt, 0, wx.RIGHT, 5), 1297 (self.data_min_tcl, 0, wx.RIGHT, 5),1297 (self.data_min_tcl, 0, wx.RIGHT, 20), 1298 1298 (data_max_txt, 0, wx.RIGHT, 5), 1299 (self.data_max_tcl, 0, wx.RIGHT, 5)])1300 self.data_name_boxsizer.AddMany([(self.hint_msg_sizer, 0 , wx.ALL, 2),1301 (self.data_name_sizer, 0 , wx.ALL, 5),1302 (self.data_range_sizer, 0 , wx.ALL, 5)])1299 (self.data_max_tcl, 0, wx.RIGHT, 10)]) 1300 self.data_name_boxsizer.AddMany([(self.hint_msg_sizer, 0 , wx.ALL, 5), 1301 (self.data_name_sizer, 0 , wx.ALL, 10), 1302 (self.data_range_sizer, 0 , wx.ALL, 10)]) 1303 1303 1304 1304 def _enable_fit_power_law_low(self, event=None): … … 1580 1580 wx.LEFT, 5), 1581 1581 (extrapolation_min_txt, 0, 1582 wx.LEFT, 5),1582 wx.LEFT, 10), 1583 1583 (self.extrapolation_min_tcl, 1584 1584 0, wx.LEFT, 5), 1585 1585 (extrapolation_max_txt, 0, 1586 wx.LEFT, 5),1586 wx.LEFT, 20), 1587 1587 (self.extrapolation_max_tcl, 1588 1588 0, wx.LEFT, 5)]) … … 1632 1632 ix += 1 1633 1633 self.volume_surface_sizer.Add(self.volume_tcl, (iy, ix), (1, 1), 1634 wx.EXPAND|wx.ADJUST_MINSIZE, 10)1634 wx.EXPAND|wx.ADJUST_MINSIZE, 20) 1635 1635 ix += 1 1636 1636 self.volume_surface_sizer.Add(wx.StaticText(self, -1, uncertainty), … … 1648 1648 ix += 1 1649 1649 self.volume_surface_sizer.Add(self.surface_tcl, (iy, ix), (1, 1), 1650 wx.EXPAND|wx.ADJUST_MINSIZE, 0)1650 wx.EXPAND|wx.ADJUST_MINSIZE, 20) 1651 1651 ix += 1 1652 1652 self.volume_surface_sizer.Add(wx.StaticText(self, -1, uncertainty), 1653 (iy, ix),(1,1),wx.EXPAND|wx.ADJUST_MINSIZE, 0)1653 (iy, ix),(1,1),wx.EXPAND|wx.ADJUST_MINSIZE, 10) 1654 1654 ix += 1 1655 1655 self.volume_surface_sizer.Add(self.surface_err_tcl, (iy, ix), (1, 1), 1656 wx.EXPAND|wx.ADJUST_MINSIZE, 0)1656 wx.EXPAND|wx.ADJUST_MINSIZE, 10) 1657 1657 ix += 1 1658 1658 self.volume_surface_sizer.Add(surface_units_txt, (iy, ix), (1, 1), … … 1703 1703 Draw widgets related to inputs 1704 1704 """ 1705 contrast_txt = wx.StaticText(self, -1, 'Contrast : 1705 contrast_txt = wx.StaticText(self, -1, 'Contrast :') 1706 1706 self.contrast_tcl = InvTextCtrl(self, -1, size=(_BOX_WIDTH, 20), 1707 1707 style=0,name='contrast_tcl') … … 1734 1734 (self.background_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 1735 1735 (background_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 1736 (scale_txt, 0, wx.LEFT|wx.BOTTOM, 5),1736 (scale_txt, 0, wx.LEFT|wx.BOTTOM, 20), 1737 1737 (self.scale_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5), 1738 1738 (contrast_txt, 0, wx.LEFT|wx.BOTTOM, 5), 1739 1739 (self.contrast_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 1740 1740 (contrast_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 1741 (porod_const_txt, 0, wx.LEFT |wx.BOTTOM, 5),1741 (porod_const_txt, 0, wx.LEFT, 20), 1742 1742 (self.porod_constant_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5)]) 1743 1743 self.inputs_sizer.Add(self.sizer_input)
Note: See TracChangeset
for help on using the changeset viewer.