| Home | Trees | Indices | Help |
|
|---|
|
|
1 #======================================================================
2 # GNUmed allergies notebook plugin
3 # --------------------------------
4 #
5 # @copyright: author
6 #======================================================================
7 # $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/client/wxpython/gui/gmAllergiesPlugin.py,v $
8 # $Id: gmAllergiesPlugin.py,v 1.9 2009-07-12 18:46:57 ncq Exp $
9 __version__ = "$Revision: 1.9 $"
10 __author__ = "R.Terry, S.J.Tan, K.Hilbert"
11 __license__ = "GPL v2 or later (details at http://www.gnu.org)"
12
13 import logging
14
15
16 import wx
17
18
19 from Gnumed.wxpython import gmPlugin, gmAllergyWidgets
20
21 _log = logging.getLogger('gm.ui')
22 _log.info(__version__)
23
24 #======================================================================
26 """Plugin to encapsulate the allergies window."""
27
28 __icons = {
29 """icon_letter_A""": 'x\xda\xd3\xc8)0\xe4\nV74S\x00"\x13\x05Cu\xae\xc4`\xf5|\x85d\x05e\x17W\x10\
30 \x04\xf3\xf5@|77\x03 \x00\xf3\x15\x80|\xbf\xfc\xbcT0\'\x02$i\xee\x06\x82PIT@\
31 HPO\x0f\xab`\x04\x86\xa0\x9e\x1e\\)\xaa`\x04\x9a P$\x02\xa6\x14Y0\x1f\xa6\
32 \x14&\xa8\x07\x05h\x82\x11\x11 \xfd\x11H\x82 1\x84[\x11\x82Hn\x85i\x8f\x80\
33 \xba&"\x82\x08\xbf\x13\x16\xd4\x03\x00\xe4\xa2I\x9c'
34 }
35
36 tab_name = _('Allergies')
37
40
42 # self._widget = gmAllergyWidgets.cAllergyPanel(parent, -1)
43 # return self._widget
44 return wx.Panel(parent, -1)
45
48
54 #======================================================================
55 # main
56 #----------------------------------------------------------------------
57 if __name__ == "__main__":
58 app = wxPyWidgetTester(size = (600, 600))
59 #app.SetWidget(gmAllergyWidgets.cAllergyPanel, -1)
60 app.MainLoop()
61 #======================================================================
62 # $Log: gmAllergiesPlugin.py,v $
63 # Revision 1.9 2009-07-12 18:46:57 ncq
64 # - return empty panel as wx 2.8.7.1 segfaults without it
65 #
66 # Revision 1.8 2008/03/06 18:32:30 ncq
67 # - standard lib logging only
68 #
69 # Revision 1.7 2007/10/12 07:28:24 ncq
70 # - lots of import related cleanup
71 #
72 # Revision 1.6 2007/05/21 14:50:05 ncq
73 # - cleanup
74 #
75 # Revision 1.5 2005/09/28 21:27:30 ncq
76 # - a lot of wx2.6-ification
77 #
78 # Revision 1.4 2005/09/26 18:01:52 ncq
79 # - use proper way to import wx26 vs wx2.4
80 # - note: THIS WILL BREAK RUNNING THE CLIENT IN SOME PLACES
81 # - time for fixup
82 #
83 # Revision 1.3 2004/10/11 20:12:09 ncq
84 # - turn into new-style notebook plugin
85 #
86 # Revision 1.2 2004/08/04 17:16:02 ncq
87 # - wx.NotebookPlugin -> cNotebookPlugin
88 # - derive cNotebookPluginOld from cNotebookPlugin
89 # - make cNotebookPluginOld warn on use and implement old
90 # explicit "main.notebook.raised_plugin"/ReceiveFocus behaviour
91 # - ReceiveFocus() -> receive_focus()
92 #
93 # Revision 1.1 2004/07/17 21:16:39 ncq
94 # - cleanup/refactor allergy widgets:
95 # - Horst space plugin added
96 # - Richard space plugin separated out
97 # - plugin independant GUI code aggregated
98 # - allergies edit area factor out from generic edit area file
99 #
100
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Dec 5 04:00:22 2011 | http://epydoc.sourceforge.net |