Cat
Public Member Functions | List of all members
gui.SplashScreen Class Reference
Inheritance diagram for gui.SplashScreen:

Public Member Functions

def __init__ (self, file)
 
def OnClose (self, evt)
 

Detailed Description

Definition at line 45 of file gui.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.SplashScreen.__init__ (   self,
  file 
)

Definition at line 46 of file gui.py.

References gui.SplashScreen.OnClose().

46  def __init__(self, file):
47  bmp = wx.Bitmap(file)
48  wx.SplashScreen.__init__(self, bmp,
49  wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
50  5000, None, -1)
51  self.Bind(wx.EVT_CLOSE, self.OnClose)
52  # self.fc = wx.FutureCall(2000, gui.ShowMain())
53 
def __init__(self, dict)
Definition: wrapper.py:56

Member Function Documentation

◆ OnClose()

def gui.SplashScreen.OnClose (   self,
  evt 
)

Definition at line 54 of file gui.py.

Referenced by gui.SplashScreen.__init__().

54  def OnClose(self, evt):
55  # Make sure the default handler runs too so this window gets
56  # destroyed
57  evt.Skip()
58  self.Hide()
59  # if the timer is still running then go ahead and show the
60  # main frame now
61  if self.fc.IsRunning():
62  self.fc.Stop()
63  gui.ShowMain()
64  if self.fc.IsRunning():
65  self.Raise()
66  gui.ShowTips()
67 
68 #---------------------------------------------------------------------------

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