def __init__(self, parent, id, title):
        wx.Dialog.__init__(self, parent, id, 'SimRefl: mirror reflectivity simulation', size=(450, 420))
        self.plot_on = 0
        LogList=['Yes', 'No']
        xUnitList=['m rad', 'Deg', 'qz']
        xcol2=180
        btnSim = wx.Button(self,  1, 'Simulate!', (30,20))
        wx.StaticText(self, -1, 'y-axis in log?', (xcol2, 5))
        self.cb0 = wx.ComboBox(self, 0, 'No', (xcol2, 25), (95, 25), LogList, wx.CB_DROPDOWN)
        wx.StaticText(self, -1, 'x-axis unit?', (xcol2, 50))
        self.cb1 = wx.ComboBox(self, 0, 'm rad', (xcol2, 70), (95, 25), xUnitList, wx.CB_DROPDOWN)
        wx.StaticText(self, -1, "incident x-ray energy (eV)", (5, 50))
        self.Text1 = wx.TextCtrl(self, 2, '7000.0', (10, 70))
        wx.StaticText(self, -1, "film material", (5, 100))
        self.Text2 = wx.TextCtrl(self, 3, 'Pt', (10, 120))
        wx.StaticText(self, -1, "film thickness (Angstrom)", (5, 150))
        self.Text3 = wx.TextCtrl(self, 4, '400.0', (10, 170))
        wx.StaticText(self, -1, "film density (g/cm^3)", (5, 200))
        self.Text4 = wx.TextCtrl(self, 5, '21.45', (10, 220))
        wx.StaticText(self, -1, "rms roughness for all interfaces (Angstrom)", (5, 250))
        self.Text5 = wx.TextCtrl(self, 6, '1.0', (10, 270))
        wx.StaticText(self, -1, "substrate material", (xcol2-5, 100))
        self.Text6 = wx.TextCtrl(self, 7, 'Si', (xcol2, 120))
        wx.StaticText(self, -1, "substrate density (g/cm^3)", (5-xcol2, 150))
        self.Text7 = wx.TextCtrl(self, 8, '2.33', (xcol2, 170))
        wx.StaticText(self, -1, "Include 50 Angstrom Cr underlayer?", (xcol2-5, 200))
        CrList=['Yes', 'No']
        self.cb2 = wx.ComboBox(self, 10, 'Yes', (xcol2, 220), (95, 25), CrList, wx.CB_DROPDOWN)
        wx.StaticText(self, -1, "define arbitrary layer structure", (5, 310))
        self.Text8 = wx.TextCtrl(self, 12, 'GaAs/GaAs(250)/Fe(40)/Au(20)', (10, 330), (300, 25))
        btnSim = wx.Button(self,  11, 'Simulate arbitrary structure.', (10,360))

        wx.EVT_BUTTON(self, 1, self.OnSimulate)
        wx.EVT_TEXT(self, 3, self.OnText2)
        wx.EVT_TEXT(self, 7, self.OnText6)
        wx.EVT_CLOSE(self, self.OnQuit)
        wx.EVT_BUTTON(self, 11, self.OnSimulate1)
dataset/ETHPy150Open xraypy/xraylarch/plugins/xsw/YongsCode/SimpleParratt_Panel.py/Plot.__init__/swapped operands of `-`