Changeset 572d4be in sasview
- Timestamp:
- Jul 9, 2008 9:33:36 AM (16 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:
- 2509e86
- Parents:
- 7a2feab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PropertyDialog.py
r6a8adb0 r572d4be 7 7 class Properties(wx.Dialog): 8 8 def __init__(self, parent, id, title): 9 wx.Dialog.__init__(self, parent, id, "Select the scale of the graph" , size=(350, 190))9 wx.Dialog.__init__(self, parent, id, "Select the scale of the graph") 10 10 """ 11 11 for the properties window 12 12 """ 13 13 self.parent = parent 14 panel = wx.Panel(self, -1, style=wx.SIMPLE_BORDER)15 14 vbox = wx.BoxSizer(wx.VERTICAL) 16 sizer = wx.GridBagSizer(5,0) 17 vbox.Add(panel, 1, wx.EXPAND | wx.ALL) 15 sizer = wx.GridBagSizer(5,5) 16 17 x_size = 70 18 18 19 19 ix = 1 20 20 iy = 1 21 sizer.Add(wx.StaticText( panel, -1, 'X'),(iy, ix))21 sizer.Add(wx.StaticText(self, -1, 'X'),(iy, ix)) 22 22 ix += 2 23 sizer.Add(wx.StaticText( panel, -1, 'Y'),(iy, ix))23 sizer.Add(wx.StaticText(self, -1, 'Y'),(iy, ix)) 24 24 ix += 2 25 sizer.Add(wx.StaticText( panel, -1, 'View'),(iy, ix))25 sizer.Add(wx.StaticText(self, -1, 'View'),(iy, ix)) 26 26 iy += 1 27 27 ix = 1 28 self.xvalue = wx.ComboBox(panel, -1) 29 sizer.Add(self.xvalue,(iy,ix)) 28 self.xvalue = wx.ComboBox(self, -1) 29 x_size += self.xvalue.GetSize()[0] 30 sizer.Add(self.xvalue,(iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 31 30 32 ix +=2 31 self.yvalue = wx.ComboBox(panel, -1) 32 sizer.Add( self.yvalue,(iy, ix)) 33 self.yvalue = wx.ComboBox(self, -1) 34 x_size += self.yvalue.GetSize()[0] 35 sizer.Add( self.yvalue,(iy, ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 36 33 37 ix +=2 34 self.view =wx.ComboBox(panel, -1) 35 sizer.Add(self.view,(iy,ix)) 38 self.view =wx.ComboBox(self, -1) 39 x_size += self.view.GetSize()[0] 40 sizer.Add(self.view,(iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 36 41 42 self.SetMinSize((x_size,50)) 43 44 vbox.Add(sizer, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 45 37 46 38 47 btCancel=wx.Button(self, wx.ID_CANCEL,'Cancel' ) … … 43 52 sizer_button.Add(btOk, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 44 53 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)54 vbox.Add(sizer_button, 0, wx.EXPAND|wx.TOP|wx.BOTTOM|wx.ADJUST_MINSIZE, 10) 46 55 47 56 … … 69 78 self.view.Insert("--",0) 70 79 self.view.Insert("Guinier lny vs x^(2)",1) 71 panel.SetSizer(sizer)80 72 81 self.SetSizer(vbox) 82 83 self.Fit() 73 84 self.Centre() 85 self.CaptureMouse() 74 86 75 87
Note: See TracChangeset
for help on using the changeset viewer.