import wx
+from . import Panel
-class Welcome (wx.html.HtmlWindow):
+
+class WelcomeWindow (wx.html.HtmlWindow):
def __init__(self, *args, **kwargs):
- super(Welcome, self).__init__(self, *args, **kwargs)
+ super(WelcomeWindow, self).__init__(self, *args, **kwargs)
lines = [
'<h1>Welcome to Hooke</h1>',
'<h3>Features</h3>',
'for more information</p>',
]
ctrl.SetPage('\n'.join(lines))
+
+class WelcomePanel (Panel, wx.Panel):
+ def __init__(self, callbacks=None, **kwargs):
+ super(WelcomePanel, self).__init__(
+ name='welcome', callbacks=callbacks, **kwargs)
+ self._c = {
+ 'window': WelcomeWindow(
+ parent=self,
+ size=wx.Size(400, 300)),
+ }