hooke.ui.gui was getting complicated, so I stripped it down for a moment.
[hooke.git] / hooke / ui / gui / panel / welcome.py
1 # Copyright
2
3 """Welcome panel for Hooke.
4 """
5
6 import wx
7
8 from . import Panel
9
10
11 class WelcomeWindow (wx.html.HtmlWindow):
12     def __init__(self, *args, **kwargs):
13         super(WelcomeWindow, self).__init__(self, *args, **kwargs)
14         lines = [
15             '<h1>Welcome to Hooke</h1>',
16             '<h3>Features</h3>',
17             '<ul>',
18             '<li>View, annotate, measure force files</li>',
19             '<li>Worm-like chain fit of force peaks</li>',
20             '<li>Automatic convolution-based filtering of empty files</li>',
21             '<li>Automatic fit and measurement of multiple force peaks</li>',
22             '<li>Handles force-clamp force experiments (experimental)</li>',
23             '<li>It is extensible through plugins and drivers</li>',
24             '</ul>',
25             '<p>See the <a href="%s">DocumentationIndex</a>'
26             % 'http://code.google.com/p/hooke/wiki/DocumentationIndex',
27             'for more information</p>',
28             ]
29         ctrl.SetPage('\n'.join(lines))
30
31 class WelcomePanel (Panel, wx.Panel):
32     def __init__(self, callbacks=None, **kwargs):
33         super(WelcomePanel, self).__init__(
34             name='welcome', callbacks=callbacks, **kwargs)
35         self._c = {
36             'window': WelcomeWindow(
37                 parent=self,
38                 size=wx.Size(400, 300)),
39             }