Changeset d0923a3 in sasview for calculatorview/src
- Timestamp:
- Apr 25, 2013 4:16:58 PM (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:
- 523f828
- Parents:
- 8833c77
- Location:
- calculatorview/src/sans/perspectives/calculator
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/calculator_widgets.py
r7d45a56 rd0923a3 9 9 """ 10 10 import wx 11 #import os 11 import sys 12 CHILD_FRAME = wx.MDIChildFrame 13 if sys.platform.count("win32") < 1: 14 if sys.platform.count("darwin") < 1: 15 CHILD_FRAME = wx.Frame 12 16 13 17 class InputTextCtrl(wx.TextCtrl): -
calculatorview/src/sans/perspectives/calculator/data_operator.py
re35534f rd0923a3 15 15 from matplotlib.figure import Figure 16 16 from sans.guiframe.events import StatusEvent 17 17 from sans.perspectives.calculator import calculator_widgets as widget 18 18 #Control panel width 19 19 if sys.platform.count("win32") > 0: … … 934 934 self.draw() 935 935 936 class DataOperatorWindow(w x.MDIChildFrame):936 class DataOperatorWindow(widget.CHILD_FRAME): 937 937 def __init__(self, parent, manager, *args, **kwds): 938 938 kwds["size"] = (PANEL_WIDTH, PANEL_HEIGTH) 939 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)939 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 940 940 self.parent = parent 941 941 self.manager = manager -
calculatorview/src/sans/perspectives/calculator/density_panel.py
re35534f rd0923a3 10 10 from sans.guiframe.events import StatusEvent 11 11 from periodictable import formula as Formula 12 from sans.perspectives.calculator import calculator_widgets as widget 12 13 13 14 AVOGADRO = 6.02214129e23 … … 371 372 return output.lstrip().rstrip() 372 373 373 class DensityWindow(w x.MDIChildFrame):374 class DensityWindow(widget.CHILD_FRAME): 374 375 """ 375 376 """ … … 381 382 kwds['title'] = title 382 383 kwds['size'] = size 383 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)384 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 384 385 """ 385 386 """ -
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
re35534f rd0923a3 35 35 from sans.perspectives.calculator.load_thread import GenReader 36 36 from danse.common.plottools.arrow3d import Arrow3D 37 from sans.perspectives.calculator import calculator_widgets as widget 37 38 38 39 _BOX_WIDTH = 76 … … 1791 1792 return flag 1792 1793 1793 class SasGenWindow(w x.MDIChildFrame):1794 class SasGenWindow(widget.CHILD_FRAME): 1794 1795 """ 1795 1796 GEN SAS main window … … 1809 1810 kwds['size'] = size 1810 1811 kwds['title'] = title 1811 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)1812 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 1812 1813 self.parent = parent 1813 1814 self.base = manager -
calculatorview/src/sans/perspectives/calculator/kiessig_calculator_panel.py
re35534f rd0923a3 16 16 from calculator_widgets import OutputTextCtrl 17 17 from calculator_widgets import InputTextCtrl 18 from sans.perspectives.calculator import calculator_widgets as widget 18 19 19 20 _BOX_WIDTH = 77 … … 190 191 self.on_compute(event) 191 192 192 class KiessigWindow(w x.MDIChildFrame):193 class KiessigWindow(widget.CHILD_FRAME): 193 194 def __init__(self, parent=None, manager=None, 194 195 title="Kiessig Thickness Calculator", … … 196 197 kwds['title'] = title 197 198 kwds['size'] = size 198 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)199 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 199 200 self.parent = parent 200 201 self.manager = manager -
calculatorview/src/sans/perspectives/calculator/resolution_calculator_panel.py
re35534f rd0923a3 30 30 from wx.lib.scrolledpanel import ScrolledPanel 31 31 from math import fabs 32 from sans.perspectives.calculator import calculator_widgets as widget 33 32 34 _BOX_WIDTH = 100 33 35 _Q_DEFAULT = 0.0 … … 1390 1392 raise 1391 1393 1392 class ResolutionWindow(w x.MDIChildFrame):1394 class ResolutionWindow(widget.CHILD_FRAME): 1393 1395 """ 1394 1396 Resolution Window … … 1406 1408 kwds['title'] = title 1407 1409 kwds['size'] = size 1408 w x.MDIChildFrame.__init__(self, parent=parent, *args, **kwds)1410 widget.CHILD_FRAME.__init__(self, parent=parent, *args, **kwds) 1409 1411 self.parent = parent 1410 1412 self.manager = manager -
calculatorview/src/sans/perspectives/calculator/sld_panel.py
re35534f rd0923a3 20 20 from periodictable.xsf import xray_sld_from_atoms 21 21 from periodictable.nsf import neutron_scattering 22 from sans.perspectives.calculator import calculator_widgets as widget 22 23 23 24 WAVELENGTH = 6.0 … … 437 438 438 439 439 class SldWindow(w x.MDIChildFrame):440 class SldWindow(widget.CHILD_FRAME): 440 441 """ 441 442 """ … … 447 448 kwds['title'] = title 448 449 kwds['size'] = size 449 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)450 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 450 451 """ 451 452 """ -
calculatorview/src/sans/perspectives/calculator/slit_length_calculator_panel.py
re35534f rd0923a3 19 19 from calculator_widgets import OutputTextCtrl 20 20 from calculator_widgets import InterActiveOutputTextCtrl 21 from sans.perspectives.calculator import calculator_widgets as widget 21 22 22 23 _BOX_WIDTH = 76 … … 251 252 252 253 253 class SlitLengthCalculatorWindow(w x.MDIChildFrame):254 class SlitLengthCalculatorWindow(widget.CHILD_FRAME): 254 255 """ 255 256 """ … … 260 261 kwds['size']= size 261 262 kwds['title']= title 262 w x.MDIChildFrame.__init__(self, parent, *args, **kwds)263 widget.CHILD_FRAME.__init__(self, parent, *args, **kwds) 263 264 self.parent = parent 264 265 self.manager = manager
Note: See TracChangeset
for help on using the changeset viewer.