Changeset 10bfeb3 in sasview for plottools/src/danse/common/plottools/PropertyDialog.py
- Timestamp:
- Apr 27, 2012 8:23:08 AM (12 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:
- f60a8c2
- Parents:
- 8a621ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PropertyDialog.py
rb4da6df r10bfeb3 1 #!/usr/bin/python2 3 # myDialog.py4 1 """ 5 2 """ … … 15 12 """ 16 13 self.parent = parent 17 vbox 14 vbox = wx.BoxSizer(wx.VERTICAL) 18 15 sizer = wx.GridBagSizer(5,5) 19 16 … … 42 39 x_size += self.view.GetSize()[0] 43 40 self.view.SetMinSize((160, 30)) 44 sizer.Add(self.view, (iy,ix), (1,1), 41 sizer.Add(self.view, (iy,ix), (1,1), 45 42 wx.EXPAND|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 46 43 self.SetMinSize((x_size, 50)) … … 52 49 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 53 50 sizer_button.Add(btOk, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 54 sizer_button.Add(btCancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 55 vbox.Add(sizer_button, 0, 51 sizer_button.Add(btCancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 52 vbox.Add(sizer_button, 0, 56 53 wx.EXPAND|wx.TOP|wx.BOTTOM|wx.ADJUST_MINSIZE, 10) 57 54 # scale value for x … … 77 74 self.yvalue.Insert("ln(y*x^(4))", 9) 78 75 self.yvalue.Insert("log10(y*x^(4))", 10) 79 # type of view or model used 76 # type of view or model used 80 77 self.view.SetValue("--") 81 78 self.view.Insert("--", 0) … … 83 80 self.view.Insert("Porod y*x^(4) vs x^(4)", 2) 84 81 self.SetSizer(vbox) 85 self.Fit() 82 self.Fit() 86 83 self.Centre() 87 84 … … 97 94 return self.xvalue.GetValue(), self.yvalue.GetValue(),\ 98 95 self.view.GetValue() 99 100 101 if __name__ == "__main__":102 app = wx.App()103 dialog = Properties(None, -1, 'Properties')104 dialog.ShowModal()105 app.MainLoop()106 107
Note: See TracChangeset
for help on using the changeset viewer.