Changeset 164d64f in sasview
- Timestamp:
- Apr 5, 2014 11:07:59 AM (11 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:
- 38d4102
- Parents:
- 7e44299
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/perspectives/fitting/ftol_dialog.py
r7e44299 r164d64f 36 36 self.SetWindowVariant(variant=FONT_VARIANT) 37 37 # build layout 38 panel = wx.Panel(self, -1)39 38 vbox = wx.BoxSizer(wx.VERTICAL) 40 wx.StaticBox(panel, -1, 'FTol selection (Leastsq)', (5, 6), (PANEL_WIDTH * 0.9, PANEL_HEIGHT * 0.7))41 self.default_bt = wx.RadioButton( panel, -1, 'SansView Default (5e-05)', (15, 30), style=wx.RB_GROUP)39 title_text = wx.StaticText(self, id=wx.NewId(), label='FTol selection (Leastsq)') 40 self.default_bt = wx.RadioButton(self, -1, 'SansView Default (5e-05)', (15, 30), style=wx.RB_GROUP) 42 41 self.default_bt.SetValue(True) 43 42 self.default_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 44 self.sci_default_bt = wx.RadioButton( panel, -1, 'Scipy Default (1.49012e-08)', (15, 55))43 self.sci_default_bt = wx.RadioButton(self, -1, 'Scipy Default (1.49012e-08)', (15, 55)) 45 44 self.sci_default_bt.SetValue(False) 46 45 self.sci_default_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 47 self.high_bt = wx.RadioButton( panel, -1, '1e-06', (15, 80))46 self.high_bt = wx.RadioButton(self, -1, '1e-06', (15, 80)) 48 47 self.high_bt.SetValue(False) 49 48 self.high_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 50 self.mid_bt = wx.RadioButton( panel, -1, '1e-05', (15, 105))49 self.mid_bt = wx.RadioButton(self, -1, '1e-05', (15, 105)) 51 50 self.mid_bt.SetValue(False) 52 51 self.mid_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 53 self.low_bt = wx.RadioButton( panel, -1, '1e-04', (15, 130))52 self.low_bt = wx.RadioButton(self, -1, '1e-04', (15, 130)) 54 53 self.low_bt.SetValue(False) 55 54 self.low_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 56 self.custom_bt = wx.RadioButton( panel, -1, 'Custom', (15, 155))55 self.custom_bt = wx.RadioButton(self, -1, 'Custom', (15, 155)) 57 56 self.custom_bt.SetValue(False) 58 57 self.custom_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) 59 self.custombox = wx.TextCtrl( panel, -1, '', (95, 155))58 self.custombox = wx.TextCtrl(self, -1, '', (95, 155)) 60 59 self.custombox.Disable() 61 60 … … 65 64 hbox.Add(okButton, 1, wx.RIGHT, 5) 66 65 hbox.Add(closeButton, 1, wx.RIGHT, 5) 67 vbox.Add(panel, 1, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 10) 68 vbox.Add(hbox, 1, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 10) 66 67 vbox.Add(title_text, 0, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 10) 68 vbox.Add(self.default_bt, 0, wx.LEFT, 20) 69 vbox.Add(self.sci_default_bt, 0, wx.LEFT, 20) 70 vbox.Add(self.high_bt, 0, wx.LEFT, 20) 71 vbox.Add(self.mid_bt, 0, wx.LEFT, 20) 72 vbox.Add(self.low_bt, 0, wx.LEFT, 20) 73 vbox.Add(self.custom_bt, 0, wx.LEFT, 20) 74 vbox.Add(self.custombox, 0, wx.LEFT, 60) 75 vbox.Add(hbox, 0, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 10) 69 76 70 77 self.SetSizer(vbox)
Note: See TracChangeset
for help on using the changeset viewer.