Changeset 3368
- Timestamp:
- May 2, 2018 11:44:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r3367 r3368 3388 3388 listSel.Bind(wx.EVT_RADIOBOX,OnListSel) 3389 3389 mainSizer.Add(listSel,0) 3390 3390 3391 headSizer = wx.wx.BoxSizer(wx.HORIZONTAL) # non-scrolling header 3391 3392 self.panel = wxscroll.ScrolledPanel(self) 3392 3393 subSizer = wx.FlexGridSizer(cols=4,hgap=2,vgap=2) 3393 subSizer.Add((-1,-1)) 3394 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'Parameter name ')) 3395 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'refine?')) 3396 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'value'),0,wx.ALIGN_RIGHT) 3394 # header now gets created later 3395 # subSizer.Add((-1,-1)) 3396 # subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'Parameter name ')) 3397 # subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'refine?')) 3398 # subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,'value'),0,wx.ALIGN_RIGHT) 3397 3399 explainRefine = False 3398 3400 count = 0 … … 3421 3423 subSizer.Add(wx.StaticText(self.panel,wx.ID_ANY,str(name))) 3422 3424 if name in self.varyList: 3423 subSizer.Add(wx.StaticText(self.panel,label='R' )) #TODO? maybe a checkbox for one stop refinemnt flag setting?3425 subSizer.Add(wx.StaticText(self.panel,label='R',size=(50,-1))) #TODO? maybe a checkbox for one stop refinemnt flag setting? 3424 3426 elif name in self.fullVaryList: 3425 subSizer.Add(wx.StaticText(self.panel,label='C' ))3427 subSizer.Add(wx.StaticText(self.panel,label='C',size=(50,-1))) 3426 3428 explainRefine = True 3427 3429 else: 3428 subSizer.Add(( -1,-1))3430 subSizer.Add((50,-1)) 3429 3431 subSizer.Add(wx.StaticText(self.panel,label=value),0,wx.ALIGN_RIGHT) 3430 3432 count += 1 … … 3435 3437 mainSizer.Add((-1,10)) 3436 3438 break 3439 mainSizer.Add(headSizer,0) 3437 3440 self.panel.SetSizer(subSizer) 3438 3441 mainSizer.Add(self.panel,1,wx.ALL|wx.EXPAND,1) … … 3452 3455 self.panel.SetupScrolling() 3453 3456 self.SetMinSize(self.GetSize()) # Allow window to be enlarged but not made smaller 3457 for txt,wid,loc in zip(['','Parameter name','refine?','value'],subSizer.GetColWidths(), 3458 [wx.ALIGN_LEFT,wx.ALIGN_LEFT,wx.ALIGN_LEFT,wx.ALIGN_RIGHT]): 3459 headSizer.Add(wx.StaticText(self,wx.ID_ANY,txt,size=(wid,-1),style=loc),0,loc) 3454 3460 self.SendSizeEvent() 3455 3461
Note: See TracChangeset
for help on using the changeset viewer.