Changeset 6a8adb0 in sasview for guitools/PropertyDialog.py
- Timestamp:
- May 29, 2008 2:55:08 PM (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:
- 052a66bc
- Parents:
- ab6098f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PropertyDialog.py
rdfca3de r6a8adb0 7 7 class Properties(wx.Dialog): 8 8 def __init__(self, parent, id, title): 9 wx.Dialog.__init__(self, parent, id, title, size=(350, 200))9 wx.Dialog.__init__(self, parent, id, "Select the scale of the graph", size=(350, 190)) 10 10 """ 11 11 for the properties window … … 16 16 sizer = wx.GridBagSizer(5,0) 17 17 vbox.Add(panel, 1, wx.EXPAND | wx.ALL) 18 18 19 19 ix = 1 20 20 iy = 1 … … 34 34 self.view =wx.ComboBox(panel, -1) 35 35 sizer.Add(self.view,(iy,ix)) 36 ix =3 37 iy +=3 38 btCancel=wx.Button(panel, wx.ID_CANCEL,'Cancel' ) 39 sizer.Add(btCancel,(iy,ix)) 40 ix +=2 41 btOk = wx.Button(panel, wx.ID_OK, "Ok") 42 sizer.Add(btOk,(iy, ix)) 36 37 38 btCancel=wx.Button(self, wx.ID_CANCEL,'Cancel' ) 39 btOk = wx.Button(self, wx.ID_OK, "OK") 40 41 sizer_button = wx.BoxSizer(wx.HORIZONTAL) 42 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 43 sizer_button.Add(btOk, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 44 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) 46 43 47 44 48 # scale value for x
Note: See TracChangeset
for help on using the changeset viewer.