Changeset ce92ded in sasview
- Timestamp:
- Jun 13, 2011 4:06:15 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:
- f56bf29
- Parents:
- 4fa5f3b
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rcdb042d rce92ded 478 478 self.state.enable_disp= self.enable_disp.GetValue() 479 479 self.state.disable_disp= self.disable_disp.GetValue() 480 #self.SetupScrolling()480 self.SetupScrolling() 481 481 482 482 -
sansview/perspectives/fitting/fitpage.py
r4fa5f3b rce92ded 659 659 self.sizer4_4.Add(text2,(iy, ix),(1,1), 660 660 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 661 text2.Hide() 661 if not self.is_mac: 662 text2.Hide() 662 663 663 664 ix = 3 … … 667 668 self.sizer4_4.Add(ctl2, (iy,ix),(1,1), 668 669 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 669 670 ctl2.Hide()670 if not self.is_mac: 671 ctl2.Hide() 671 672 672 673 ix = 4 … … 799 800 self.sizer4_4.Add(text2,(iy, ix),(1,1), 800 801 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 801 text2.Hide() 802 if not self.is_mac: 803 text2.Hide() 802 804 803 805 ix = 3 … … 807 809 self.sizer4_4.Add(ctl2, (iy,ix),(1,1), 808 810 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 809 ctl2.Hide() 811 if not self.is_mac: 812 ctl2.Hide() 810 813 811 814 ix = 4 … … 1101 1104 self.formfactorbox.SetValue(current_val) 1102 1105 self._onDraw(event=None) 1103 #self.SetupScrolling()1106 self.SetupScrolling() 1104 1107 1105 1108 … … 1289 1292 after fitting 1290 1293 """ 1291 1294 if self.is_mac: 1295 return 1292 1296 if hasattr(self,"text2_3"): 1293 1297 self.text2_3.Hide() … … 1801 1805 1802 1806 #Hide error title 1803 #if self.text2_3.IsShown():1804 #self.text2_3.Hide()1807 if self.text2_3.IsShown() and not self.is_mac: 1808 self.text2_3.Hide() 1805 1809 1806 1810 try: 1807 1811 if self.enable_disp.GetValue(): 1808 1812 if hasattr(self,"text_disp_1" ): 1809 if self.text_disp_1 != None and self.text_disp_1.IsShown():1813 if self.text_disp_1 != None and not self.is_mac: 1810 1814 self.text_disp_1.Hide() 1811 1815 except: … … 1816 1820 self.param_toFit[0][2].SetValue(format_number(out, True)) 1817 1821 1818 if self.param_toFit[0][4].IsShown :1822 if self.param_toFit[0][4].IsShown and not self.is_mac: 1819 1823 self.param_toFit[0][4].Hide() 1820 1824 if cov !=None : … … 1829 1833 1830 1834 if cov[0]==None or not numpy.isfinite(cov[0]): 1831 if self.param_toFit[0][3].IsShown :1835 if self.param_toFit[0][3].IsShown and not self.is_mac: 1832 1836 self.param_toFit[0][3].Hide() 1833 1837 else: … … 1840 1844 i = 0 1841 1845 #Set the panel when fit result are list 1842 for i dx in range(len(self.param_toFit)):1843 if len( self.param_toFit[idx])>5 and self.param_toFit[idx] != None:1846 for item in self.param_toFit: 1847 if len(item)>5 and item != None and not self.is_mac: 1844 1848 ## reset error value to initial state 1845 self.param_toFit[idx][3].Hide()1846 self.param_toFit[idx][4].Hide()1849 item[3].Hide() 1850 item[4].Hide() 1847 1851 1848 1852 for ind in range(len(out)): 1849 1853 1850 if self.param_toFit[idx][1] == p_name[ind]:1854 if item[1] == p_name[ind]: 1851 1855 break 1852 1856 if len(out)<=len(self.param_toFit) and out[ind] !=None: 1853 val_out = format_number(out[ind], True) 1854 if numpy.isfinite(val_out): 1855 self.param_toFit[idx][2].SetValue(val_out) 1857 val_out = format_number(out[ind], True) 1858 item[2].SetValue(val_out) 1856 1859 1857 1860 … … 1863 1866 if hasattr(self,"text_disp_1" ): 1864 1867 if self.text_disp_1!=None: 1865 if not self.text_disp_1.IsShown(): 1868 if not self.text_disp_1.IsShown()\ 1869 and not self.is_mac: 1866 1870 self.text_disp_1.Show(True) 1867 1871 except: … … 1871 1875 if numpy.isfinite(float(cov[ind])): 1872 1876 val_err = format_number(cov[ind], True) 1873 self.param_toFit[idx][3].Show(True) 1874 self.param_toFit[idx][4].SetValue(val_err) 1875 self.param_toFit[idx][4].Show(True) 1877 if not self.is_mac: 1878 item[3].Show(True) 1879 item[4].Show(True) 1880 item[4].SetValue(val_err) 1876 1881 1877 1882 has_error = True … … 1886 1891 1887 1892 #self._lay_out() 1888 self.sizer3.Layout()1889 self.sizer4_4.Layout()1890 1893 self.Layout() 1891 1894 self.Refresh() … … 2480 2483 if model ==None: 2481 2484 self.sizer3.Layout() 2482 #self.SetupScrolling()2485 self.SetupScrolling() 2483 2486 return 2484 2487 ## the panel is drawn using the current value of the fit engine … … 2642 2645 sizer.Add(text2,(iy, ix),(1,1),\ 2643 2646 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 2644 text2.Hide() 2647 if not self.is_mac: 2648 text2.Hide() 2645 2649 ix += 1 2646 2650 ctl2 = wx.TextCtrl(self, -1, size=(_BOX_WIDTH/1.2,20), style=0) 2647 2651 sizer.Add(ctl2, (iy,ix),(1,1), 2648 2652 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 2649 ctl2.Hide() 2653 if not self.is_mac: 2654 ctl2.Hide() 2650 2655 2651 2656 ix += 1 … … 2744 2749 sizer.Add(text2,(iy, ix),(1,1),\ 2745 2750 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 2746 text2.Hide() 2751 if not self.is_mac: 2752 text2.Hide() 2747 2753 ix += 1 2748 2754 ctl2 = wx.TextCtrl(self, -1, size=(_BOX_WIDTH/1.2,20), style=0) 2749 2755 sizer.Add(ctl2, (iy,ix),(1,1), 2750 2756 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 2751 ctl2.Hide() 2757 if not self.is_mac: 2758 ctl2.Hide() 2752 2759 2753 2760
Note: See TracChangeset
for help on using the changeset viewer.