1 # Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
3 # This file is part of Hooke.
5 # Hooke is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU Lesser General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option) any
10 # Hooke is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with Hooke. If not, see <http://www.gnu.org/licenses/>.
18 """Welcome panel for Hooke.
26 class WelcomeWindow (wx.html.HtmlWindow):
27 def __init__(self, *args, **kwargs):
28 super(WelcomeWindow, self).__init__(self, *args, **kwargs)
30 '<h1>Welcome to Hooke</h1>',
33 '<li>View, annotate, measure force files</li>',
34 '<li>Worm-like chain fit of force peaks</li>',
35 '<li>Automatic convolution-based filtering of empty files</li>',
36 '<li>Automatic fit and measurement of multiple force peaks</li>',
37 '<li>Handles force-clamp force experiments (experimental)</li>',
38 '<li>It is extensible through plugins and drivers</li>',
40 '<p>See the <a href="%s">DocumentationIndex</a>'
41 % 'http://code.google.com/p/hooke/wiki/DocumentationIndex',
42 'for more information</p>',
44 ctrl.SetPage('\n'.join(lines))
46 class WelcomePanel (Panel, wx.Panel):
47 def __init__(self, callbacks=None, **kwargs):
48 super(WelcomePanel, self).__init__(
49 name='welcome', callbacks=callbacks, **kwargs)
51 'window': WelcomeWindow(
53 size=wx.Size(400, 300)),