Cat
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
LogFrame.LogFrame Class Reference
Inheritance diagram for LogFrame.LogFrame:

Public Member Functions

def __init__ (self, app, parent, title)
 
def onIdle (self, event)
 
def onCloseConfirm (self, event)
 
def onClose (self, event)
 
def onExit (self, event)
 

Public Attributes

 path
 
 panel
 

Static Public Attributes

string overviewText = "CAT Configuration Window"
 

Detailed Description

Definition at line 22 of file LogFrame.py.

Constructor & Destructor Documentation

◆ __init__()

def LogFrame.LogFrame.__init__ (   self,
  app,
  parent,
  title 
)

Definition at line 24 of file LogFrame.py.

24  def __init__(self,app,parent,title):
25  wx.Frame.__init__(self, parent, wx.NewId(), title)
26  self.path=os.path.join(os.environ.get("CATLAL"), "CatPython", "python")
27  res=xrc.XmlResource(os.path.join(self.path,"xrc/ConfPanel.xrc"))
28  self.panel=res.LoadPanel(self, "ConfPanel")
29 
def __init__(self, dict)
Definition: wrapper.py:56

Member Function Documentation

◆ onClose()

def LogFrame.LogFrame.onClose (   self,
  event 
)
Closes the application

Definition at line 42 of file LogFrame.py.

42  def onClose(self, event):
43  '''Closes the application'''
44  self.Destroy()
45 

◆ onCloseConfirm()

def LogFrame.LogFrame.onCloseConfirm (   self,
  event 
)
Closes the application

Definition at line 35 of file LogFrame.py.

35  def onCloseConfirm(self, event):
36  '''Closes the application'''
37  dlg = wx.MessageDialog(self, "Exit the program?", "Exit", wx.YES_NO | wx.ICON_QUESTION)
38  if dlg.ShowModal() == wx.ID_YES:
39  dlg.Destroy() # frame
40  self.Destroy()
41 

◆ onExit()

def LogFrame.LogFrame.onExit (   self,
  event 
)
Exit the app

Definition at line 46 of file LogFrame.py.

46  def onExit(self, event):
47  '''Exit the app'''
48  self.Close(True)
49 # exit(2)
50 
51 
52 
53 #----------------------------------------------------------------------------
54 
55 
56 
57 

◆ onIdle()

def LogFrame.LogFrame.onIdle (   self,
  event 
)
Responds to idle time in the system

Definition at line 30 of file LogFrame.py.

30  def onIdle(self, event):
31  '''Responds to idle time in the system'''
32  # when the timer says it's time, we do the actual downloading in the main thread (wx doesn't work well in secondary threads)
33  print "hello"
34 

Member Data Documentation

◆ overviewText

string LogFrame.LogFrame.overviewText = "CAT Configuration Window"
static

Definition at line 23 of file LogFrame.py.

◆ panel

◆ path

LogFrame.LogFrame.path

Definition at line 26 of file LogFrame.py.

Referenced by element.element.loadxrc(), and proc.proc.loadxrc().


The documentation for this class was generated from the following file: