Changeset 44148f0 in sasview for calculatorview/perspectives/calculator
- Timestamp:
- Nov 2, 2010 9:34:47 AM (14 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:
- a7a5886
- Parents:
- 96c0234
- Location:
- calculatorview/perspectives/calculator
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator.py
rb0ab6cb r44148f0 145 145 frame = KiessigWindow() 146 146 frame.Show(True) 147 event.Skip() 148 147 149 148 def on_calculate_sld(self, event): 150 149 """ … … 154 153 frame = SldWindow(base=self.parent) 155 154 frame.Show(True) 156 event.Skip() 157 155 158 156 def on_calculate_slit_size(self, event): 159 157 """ … … 163 161 frame = SlitLengthCalculatorWindow(parent=self.parent) 164 162 frame.Show(True) 165 event.Skip() 166 163 167 164 def on_perspective(self, event): 168 165 """ -
calculatorview/perspectives/calculator/kiessig_calculator_panel.py
rb0ab6cb r44148f0 185 185 186 186 class KiessigWindow(wx.Frame): 187 def __init__(self, parent=None, title="Kiessig Thickness Calculator"): 188 wx.Frame.__init__(self, parent, title, 189 size=(PANEL_WIDTH,PANEL_HEIGHT)) 187 def __init__(self, parent=None, title="Kiessig Thickness Calculator", 188 size=(PANEL_WIDTH,PANEL_HEIGHT), *args, **kwds): 189 kwds['title'] = title 190 kwds['size'] = size 191 wx.Frame.__init__(self, parent, *args, **kwds) 190 192 self.parent = parent 191 193 self.panel = KiessigThicknessCalculatorPanel(parent=self) -
calculatorview/perspectives/calculator/sld_panel.py
rb0ab6cb r44148f0 46 46 CENTER_PANE = True 47 47 48 def __init__(self, parent, base=None ):49 """ 50 """ 51 wx.Panel.__init__(self, parent )48 def __init__(self, parent, base=None, *args, **kwds): 49 """ 50 """ 51 wx.Panel.__init__(self, parent, *args, **kwds) 52 52 #Font size 53 53 self.SetWindowVariant(variant=FONT_VARIANT) … … 415 415 """ 416 416 """ 417 def __init__(self, parent=None, title="SLD Calculator", base=None): 418 """ 419 """ 420 wx.Frame.__init__(self, parent, title, 421 size=(PANEL_SIZE, PANEL_SIZE)) 417 def __init__(self, parent=None, title="SLD Calculator", 418 base=None, size=(PANEL_SIZE, PANEL_SIZE), *args, **kwds): 419 """ 420 """ 421 kwds['title'] = title 422 kwds['size'] = size 423 wx.Frame.__init__(self, parent, *args, **kwds) 422 424 """ 423 425 """ … … 432 434 """ 433 435 """ 434 frame = SldWindow(None, -1,'SLD Calculator')436 frame = SldWindow(None, title='SLD Calculator') 435 437 frame.Show(True) 436 438 self.SetTopWindow(frame) -
calculatorview/perspectives/calculator/slit_length_calculator_panel.py
rb0ab6cb r44148f0 238 238 """ 239 239 """ 240 def __init__(self, parent=None, title="Slit Size Calculator"): 241 """ 242 """ 243 wx.Frame.__init__(self, parent, title, 244 size=(PANEL_WIDTH,PANEL_HEIGHT)) 240 def __init__(self, parent=None, title="Slit Size Calculator", 241 size=(PANEL_WIDTH,PANEL_HEIGHT), *args, **kwds): 242 """ 243 """ 244 kwds['size']= size 245 kwds['title']= title 246 wx.Frame.__init__(self, parent, *args, **kwds) 245 247 self.parent = parent 246 248 self.panel = SlitLengthCalculatorPanel(parent=self)
Note: See TracChangeset
for help on using the changeset viewer.