def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "panelSystem") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Tree = XRCCTRL(self, "Tree") self.PrevObject = XRCCTRL(self, "PrevObject") if hasattr(self, "OnPrevObject"): self.Bind(wx.EVT_BUTTON, self.OnPrevObject, self.PrevObject) self.NextObject = XRCCTRL(self, "NextObject") if hasattr(self, "OnNextObject"): self.Bind(wx.EVT_BUTTON, self.OnNextObject, self.NextObject) self.StepInto = XRCCTRL(self, "StepInto") if hasattr(self, "OnStepInto"): self.Bind(wx.EVT_BUTTON, self.OnStepInto, self.StepInto) self.Search = XRCCTRL(self, "Search")
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "orderList") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Choices = XRCCTRL(self, "Choices") self.Type = XRCCTRL(self, "Type") if hasattr(self, "OnType"): self.Type.Bind(wx.EVT_CHOICE, self.OnType) self.Number = XRCCTRL(self, "Number") self.Add = XRCCTRL(self, "Add") if hasattr(self, "OnAdd"): self.Bind(wx.EVT_BUTTON, self.OnAdd, self.Add) self.Delete = XRCCTRL(self, "Delete") if hasattr(self, "OnDelete"): self.Bind(wx.EVT_BUTTON, self.OnDelete, self.Delete)
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "configConnect") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Servers = XRCCTRL(self, "Servers") self.ServerDetails = XRCCTRL(self, "ServerDetails") self.Username = XRCCTRL(self, "Username") self.GameShow = XRCCTRL(self, "GameShow") if hasattr(self, "OnGameShow"): self.Bind(wx.EVT_TOGGLEBUTTON, self.OnGameShow, self.GameShow) self.GameTitle = XRCCTRL(self, "GameTitle") self.Game = XRCCTRL(self, "Game") self.Password = XRCCTRL(self, "Password") self.AutoConnect = XRCCTRL(self, "AutoConnect") if hasattr(self, "OnAutoConnect"): self.Bind(wx.EVT_CHECKBOX, self.OnAutoConnect, self.AutoConnect) self.Debug = XRCCTRL(self, "Debug") if hasattr(self, "OnDebug"): self.Bind(wx.EVT_CHECKBOX, self.OnDebug, self.Debug)
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "orderRange") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Value = XRCCTRL(self, "Value")
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "orderPosition") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.X = XRCCTRL(self, "X") self.Y = XRCCTRL(self, "Y") self.Z = XRCCTRL(self, "Z") self.Locate = XRCCTRL(self, "Locate") if hasattr(self, "OnLocate"): self.Bind(wx.EVT_BUTTON, self.OnLocate, self.Locate)
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "panelPicture") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Title = XRCCTRL(self, "Title") self.Background = XRCCTRL(self, "Background") self.Static = XRCCTRL(self, "Static") self.Animation = XRCCTRL(self, "Animation") self.Download = XRCCTRL(self, "Download") self.Progress = XRCCTRL(self, "Progress") self.Speed = XRCCTRL(self, "Speed") self.ETA = XRCCTRL(self, "ETA")
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "panelOrder") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.Master = XRCCTRL(self, "Master") self.Orders = XRCCTRL(self, "Orders") self.Possible = XRCCTRL(self, "Possible") if hasattr(self, "OnPossible"): self.Possible.Bind(wx.EVT_CHOICE, self.OnPossible) self.New = XRCCTRL(self, "New") if hasattr(self, "OnNew"): self.Bind(wx.EVT_BUTTON, self.OnNew, self.New) self.DetailsParentPanel = XRCCTRL(self, "DetailsParentPanel") self.ArgumentLine = XRCCTRL(self, "ArgumentLine") self.DetailsBorderPanel = XRCCTRL(self, "DetailsBorderPanel") self.DetailsPanel = XRCCTRL(self, "DetailsPanel") self.ButtonsPanel = XRCCTRL(self, "ButtonsPanel") self.Message = XRCCTRL(self, "Message") self.Save = XRCCTRL(self, "Save") if hasattr(self, "OnSave"): self.Bind(wx.EVT_BUTTON, self.OnSave, self.Save) self.Revert = XRCCTRL(self, "Revert") if hasattr(self, "OnRevert"): self.Bind(wx.EVT_BUTTON, self.OnRevert, self.Revert) self.Delete = XRCCTRL(self, "Delete") if hasattr(self, "OnDelete"): self.Bind(wx.EVT_BUTTON, self.OnDelete, self.Delete)
def __init__(self, parent, *args, **kw): """ Pass an initialized wx.xrc.XmlResource into res """ f = os.path.join(os.path.dirname(__file__), self.xrc) res = XmlResourceWithHandlers(f) # Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation) pre = wx.PrePanel() res.LoadOnPanel(pre, parent, "panelStarMap") self.PreCreate(pre) self.PostCreate(pre) # Define variables for the controls self.MouseMode = XRCCTRL(self, "MouseMode") if hasattr(self, "OnMouseMode"): self.Bind(wx.EVT_BUTTON, self.OnMouseMode, self.MouseMode) self.ZoomLevel = XRCCTRL(self, "ZoomLevel") if hasattr(self, "OnZoomLevel"): self.Bind(wx.EVT_COMBOBOX, self.OnZoomLevel, self.ZoomLevel) self.Bind(wx.EVT_TEXT_ENTER, self.OnZoomLevel, self.ZoomLevel) if hasattr(self, "OnDirtyZoomLevel"): self.Bind(wx.EVT_TEXT, self.OnZoomLevel, self.ZoomLevel) self.Home = XRCCTRL(self, "Home") if hasattr(self, "OnHome"): self.Bind(wx.EVT_BUTTON, self.OnHome, self.Home) self.Find = XRCCTRL(self, "Find") if hasattr(self, "OnFind"): self.Bind(wx.EVT_BUTTON, self.OnFind, self.Find) self.DisplayMode = XRCCTRL(self, "DisplayMode") if hasattr(self, "OnDisplayMode"): self.DisplayMode.Bind(wx.EVT_CHOICE, self.OnDisplayMode) self.DisplayModeExtra = XRCCTRL(self, "DisplayModeExtra") self.FloatCanvas = XRCCTRL(self, "FloatCanvas")