Changeset 164d64f in sasview


Ignore:
Timestamp:
Apr 5, 2014 11:07:59 AM (11 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

Fix FTOL dialog size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/fitting/ftol_dialog.py

    r7e44299 r164d64f  
    3636        self.SetWindowVariant(variant=FONT_VARIANT) 
    3737        # build layout 
    38         panel = wx.Panel(self, -1) 
    3938        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) 
    4241        self.default_bt.SetValue(True) 
    4342        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)) 
    4544        self.sci_default_bt.SetValue(False) 
    4645        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)) 
    4847        self.high_bt.SetValue(False) 
    4948        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)) 
    5150        self.mid_bt.SetValue(False) 
    5251        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)) 
    5453        self.low_bt.SetValue(False) 
    5554        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)) 
    5756        self.custom_bt.SetValue(False) 
    5857        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)) 
    6059        self.custombox.Disable() 
    6160         
     
    6564        hbox.Add(okButton, 1, wx.RIGHT, 5) 
    6665        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) 
    6976         
    7077        self.SetSizer(vbox) 
Note: See TracChangeset for help on using the changeset viewer.