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