Changeset ff8f99b in sasview for sansview/perspectives/fitting/modelpage.py
- Timestamp:
- Oct 14, 2009 10:00:19 PM (15 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:
- 448e69c
- Parents:
- 860afc1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/modelpage.py
ra720d1f rff8f99b 83 83 add access to npts 84 84 """ 85 sizer_npts= wx.GridSizer(1, 1,5, 5) 86 85 ##The following 3 lines are for Mac. Let JHC know before modifying.. 86 title = "Plotted Q Range" 87 box_description= wx.StaticBox(self, -1,str(title)) 88 boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 89 90 sizer_npts= wx.GridSizer(1, 1,5, 5) 87 91 self.npts = BasicPage.ModelTextCtrl(self, -1,size=(_BOX_WIDTH,20)) 88 92 self.npts.SetValue(format_number(self.num_points)) … … 91 95 sizer_npts.Add(wx.StaticText(self, -1, 'Npts'),1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 92 96 sizer_npts.Add(self.npts,1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 93 self._set_range_sizer( title= "Plotted Q Range", object= sizer_npts)97 self._set_range_sizer( title=title, box_sizer=boxsizer1, object= sizer_npts) 94 98 95 99 … … 108 112 fill sizer containing model info 109 113 """ 114 ##The following 3 lines are for Mac. Let JHC know before modifying.. 115 title = "Model" 116 box_description= wx.StaticBox(self, -1,str(title)) 117 boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 118 110 119 id = wx.NewId() 111 120 self.model_view =wx.Button(self,id,'View 2D') … … 114 123 115 124 ## class base method to add view 2d button 116 self._set_model_sizer(sizer=sizer, title="Model",object= self.model_view )125 self._set_model_sizer(sizer=sizer,box_sizer=boxsizer1, title=title,object= self.model_view ) 117 126 118 127 … … 397 406 self.Bind( wx.EVT_RADIOBUTTON, self._on_display_description, 398 407 id=self.description_show.GetId() ) 408 #MAC needs SetValue 409 self.description_hide.SetValue(True) 399 410 400 411 self.model_description = wx.Button(self,-1, label="Details") … … 405 416 sizer_selection.Add( (20,20)) 406 417 sizer_selection.Add( self.description_hide ) 407 sizer_selection.Add((20,20),0, wx.LEFT|wx.RIGHT|wx.EXPAND, 67)418 sizer_selection.Add((20,20),0, wx.LEFT|wx.RIGHT|wx.EXPAND,75) 408 419 sizer_selection.Add( self.model_description ) 409 420
Note: See TracChangeset
for help on using the changeset viewer.