Changeset 6a8adb0 in sasview
- Timestamp:
- May 29, 2008 2:55:08 PM (17 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:
- 052a66bc
- Parents:
- ab6098f
- Location:
- guitools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PropertyDialog.py
rdfca3de r6a8adb0 7 7 class Properties(wx.Dialog): 8 8 def __init__(self, parent, id, title): 9 wx.Dialog.__init__(self, parent, id, title, size=(350, 200))9 wx.Dialog.__init__(self, parent, id, "Select the scale of the graph", size=(350, 190)) 10 10 """ 11 11 for the properties window … … 16 16 sizer = wx.GridBagSizer(5,0) 17 17 vbox.Add(panel, 1, wx.EXPAND | wx.ALL) 18 18 19 19 ix = 1 20 20 iy = 1 … … 34 34 self.view =wx.ComboBox(panel, -1) 35 35 sizer.Add(self.view,(iy,ix)) 36 ix =3 37 iy +=3 38 btCancel=wx.Button(panel, wx.ID_CANCEL,'Cancel' ) 39 sizer.Add(btCancel,(iy,ix)) 40 ix +=2 41 btOk = wx.Button(panel, wx.ID_OK, "Ok") 42 sizer.Add(btOk,(iy, ix)) 36 37 38 btCancel=wx.Button(self, wx.ID_CANCEL,'Cancel' ) 39 btOk = wx.Button(self, wx.ID_OK, "OK") 40 41 sizer_button = wx.BoxSizer(wx.HORIZONTAL) 42 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 43 sizer_button.Add(btOk, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 44 sizer_button.Add(btCancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 45 vbox.Add(sizer_button, 0, wx.EXPAND|wx.BOTTOM|wx.TOP, 10) 46 43 47 44 48 # scale value for x -
guitools/fitDialog.py
r05da1f89 r6a8adb0 56 56 self.tcChi.SetToolTipString("Chi^2 over degrees of freedom.") 57 57 self.xminFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 58 self.xminFit.SetToolTipString("Enter the minimum value on the axis to be included in the fit.")58 self.xminFit.SetToolTipString("Enter the minimum value on the x-axis to be included in the fit.") 59 59 self.xmaxFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 60 self.xmaxFit.SetToolTipString("Enter the maximum value on the axis to be included in the fit.")60 self.xmaxFit.SetToolTipString("Enter the maximum value on the x-axis to be included in the fit.") 61 61 self.xminTransFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 62 self.xminTransFit.SetToolTipString("Minimum value on the x-axis for the plotted data.") 62 63 self.xmaxTransFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 64 self.xmaxTransFit.SetToolTipString("Maximum value on the x-axis for the plotted data.") 63 65 self.initXmin = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 66 self.initXmin.SetToolTipString("Minimum value available on the x-axis for the plotted data.") 64 67 self.initXmax = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 68 self.initXmax.SetToolTipString("Maximum value available on the x-axis for the plotted data.") 65 69 66 70 # Make the info box not editable … … 126 130 iy += 1 127 131 ix = 0 128 sizer.Add(wx.StaticText(self, -1, 'Plotted Range'),(iy, ix),(1,1),\132 sizer.Add(wx.StaticText(self, -1, 'Plotted range'),(iy, ix),(1,1),\ 129 133 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 130 134 ix +=1 … … 136 140 iy += 1 137 141 ix = 0 138 sizer.Add(wx.StaticText(self, -1, 'Fit Range of '+self.xLabel),(iy, ix),(1,1),\142 sizer.Add(wx.StaticText(self, -1, 'Fit range of '+self.xLabel),(iy, ix),(1,1),\ 139 143 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 140 144 ix += 1 … … 146 150 iy += 1 147 151 ix = 0 148 sizer.Add(wx.StaticText(self, -1, 'Fit Range of x'),(iy, ix),(1,1),\152 sizer.Add(wx.StaticText(self, -1, 'Fit range of x'),(iy, ix),(1,1),\ 149 153 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 150 154 ix += 1
Note: See TracChangeset
for help on using the changeset viewer.