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