1
2
3
4
5
6
7
8
9
10 __version__ = "$Revision: 1.18 $"
11 __author__ = "Carlos Moro, Karsten Hilbert"
12 __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
13
14 import logging
15
16
17 if __name__ == '__main__':
18
19 import sys
20 sys.path.insert(0, '../../../')
21
22 from Gnumed.pycommon import gmI18N
23 gmI18N.activate_locale()
24 gmI18N.install_domain()
25
26
27 from Gnumed.wxpython import gmPlugin, gmSOAPWidgets
28
29
30 _log = logging.getLogger('gm.ui')
31 _log.info(__version__)
32
33
55
56
57
58 if __name__ == "__main__":
59
60
61 import wx
62
63
64 from Gnumed.business import gmPersonSearch
65
66 _log.info("starting Notebooked progress notes input plugin...")
67
68 try:
69
70 patient = gmPersonSearch.ask_for_patient()
71 if patient is None:
72 print "None patient. Exiting gracefully..."
73 sys.exit(0)
74 gmPatSearchWidgets.set_active_patient(patient=patient)
75
76
77 application = wx.wx.PyWidgetTester(size=(800,600))
78 multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1)
79
80 application.frame.Show(True)
81 application.MainLoop()
82
83
84 if patient is not None:
85 try:
86 patient.cleanup()
87 except:
88 print "error cleaning up patient"
89 except StandardError:
90 _log.exception("unhandled exception caught !")
91
92 raise
93
94 _log.info("closing Notebooked progress notes input plugin...")
95
96