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