Changeset e696e0a in sasview


Ignore:
Timestamp:
Jan 10, 2011 1:59:19 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
6a0cbcf4
Parents:
691643c
Message:

make panel inheriting from panelbase of guiframe

Location:
calculatorview/perspectives/calculator
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/kiessig_calculator_panel.py

    r6996942 re696e0a  
    1111import wx 
    1212import sys 
    13 #import os 
    14  
    15 #from sans.guicomm.events import StatusEvent   
     13 
     14from sans.guiframe.panel_base import PanelBase 
    1615from sans.calculator.kiessig_calculator import KiessigThicknessCalculator  
    1716from calculator_widgets import OutputTextCtrl 
     
    2928    FONT_VARIANT = 1 
    3029  
    31 class KiessigThicknessCalculatorPanel(wx.Panel): 
     30class KiessigThicknessCalculatorPanel(wx.Panel, PanleBase): 
    3231    """ 
    3332    Provides the Kiessig thickness calculator GUI. 
     
    4241    def __init__(self, parent, *args, **kwds): 
    4342        wx.Panel.__init__(self, parent, *args, **kwds) 
     43        PanelBase.__init__(self) 
    4444        #Font size  
    4545        self.SetWindowVariant(variant=FONT_VARIANT)   
  • calculatorview/perspectives/calculator/sld_panel.py

    r1e96a66 re696e0a  
    77import math 
    88import sys 
     9 
     10from sans.guiframe.panel_base import PanelBase 
    911 
    1012from sans.guiframe.utils import format_number 
     
    1719from periodictable.xsf import xray_energy 
    1820from periodictable.xsf import xray_sld_from_atoms 
    19 #rom periodictable.constants import avogadro_number 
    2021from periodictable.nsf import neutron_scattering 
    2122        
     
    3536    FONT_VARIANT = 1 
    3637     
    37 class SldPanel(wx.Panel): 
     38class SldPanel(wx.Panel, PanelBase): 
    3839    """ 
    3940    Provides the SLD calculator GUI. 
     
    5051        """ 
    5152        wx.Panel.__init__(self, parent, *args, **kwds) 
     53        PanelBase.__init__(self) 
    5254        #Font size  
    5355        self.SetWindowVariant(variant=FONT_VARIANT) 
  • calculatorview/perspectives/calculator/slit_length_calculator_panel.py

    r6996942 re696e0a  
    1313import os 
    1414 
    15 #from DataLoader.readers.ascii_reader import Reader 
     15from sans.guiframe.panel_base import PanelBase 
     16 
    1617from sans.guicomm.events import StatusEvent   
    1718from sans.calculator.slit_length_calculator import SlitlengthCalculator   
     
    3031    FONT_VARIANT = 1 
    3132  
    32 class SlitLengthCalculatorPanel(wx.Panel): 
     33class SlitLengthCalculatorPanel(wx.Panel, PanelBase): 
    3334    """ 
    3435        Provides the slit length calculator GUI. 
     
    4344    def __init__(self, parent, *args, **kwds): 
    4445        wx.Panel.__init__(self, parent, *args, **kwds) 
     46        PanelBase.__init__(self) 
    4547        #Font size  
    4648        self.SetWindowVariant(variant=FONT_VARIANT) 
Note: See TracChangeset for help on using the changeset viewer.