Home | Trees | Indices | Help |
|
---|
|
1 #============================================================================ 2 # gmGP_Allergies 3 # 4 # @dependencies: wxPython (>= version 2.3.1) 5 #============================================================================ 6 # $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/client/wxpython/patient/gmGP_Allergies.py,v $ 7 __version__ = "$Revision: 1.26 $" 8 __author__ = "R.Terry <rterry@gnumed.net>, H.Herb <hherb@gnumed.net>, K.Hilbert <Karsten.Hilbert@gmx.net>" 9 __license__ = 'GPL v2 or later (details at http://www.gnu.org)' 10 11 12 from Gnumed.wxpython import gmPlugin_Patient, gmAllergyWidgets 13 14 #============================================================================16 """Plugin to encapsulate the allergies window""" 17 18 __icons = { 19 """icon_letter_A""": 'x\xda\xd3\xc8)0\xe4\nV74S\x00"\x13\x05Cu\xae\xc4`\xf5|\x85d\x05e\x17W\x10\ 20 \x04\xf3\xf5@|77\x03 \x00\xf3\x15\x80|\xbf\xfc\xbcT0\'\x02$i\xee\x06\x82PIT@\ 21 HPO\x0f\xab`\x04\x86\xa0\x9e\x1e\\)\xaa`\x04\x9a P$\x02\xa6\x14Y0\x1f\xa6\ 22 \x14&\xa8\x07\x05h\x82\x11\x11 \xfd\x11H\x82 1\x84[\x11\x82Hn\x85i\x8f\x80\ 23 \xba&"\x82\x08\xbf\x13\x16\xd4\x03\x00\xe4\xa2I\x9c' 24 } 25 28 3143 # return gmAllergyWidgets.cAllergyPanel (parent, -1) 44 45 #============================================================================ 46 if __name__ == "__main__": 47 print "no unit test available" 48 # from wxPython.wx import * 49 # app = wxPyWidgetTester(size = (600, 600)) 50 # app.SetWidget(AllergyPanel, -1) 51 # app.MainLoop() 52 #============================================================================ 53 # $Log: gmGP_Allergies.py,v $ 54 # Revision 1.26 2007-05-21 14:50:05 ncq 55 # - cleanup 56 # 57 # Revision 1.25 2004/07/17 21:16:39 ncq 58 # - cleanup/refactor allergy widgets: 59 # - Horst space plugin added 60 # - Richard space plugin separated out 61 # - plugin independant GUI code aggregated 62 # - allergies edit area factor out from generic edit area file 63 # 64 # Revision 1.24 2004/07/15 23:30:16 ncq 65 # - 'clinical_record' -> get_clinical_record() 66 # 67 # Revision 1.23 2004/06/25 13:28:00 ncq 68 # - logically separate notebook and clinical window plugins completely 69 # 70 # Revision 1.22 2004/03/19 21:07:35 shilbert 71 # - fixed module import 72 # 73 # Revision 1.21 2004/02/25 09:46:23 ncq 74 # - import from pycommon now, not python-common 75 # 76 # Revision 1.20 2004/02/05 23:51:01 ncq 77 # - wxCallAfter() use 78 # 79 # Revision 1.19 2003/12/02 02:10:14 ncq 80 # - comment out stuff so it won't complain, rewrite cleanly eventually ! 81 # 82 # Revision 1.18 2003/11/23 13:59:10 sjtan 83 # 84 # _print removed from base class, so remove debugging calls to it. 85 # 86 # Revision 1.17 2003/11/17 10:56:41 sjtan 87 # 88 # synced and commiting. 89 # 90 # Revision 1.3 2003/10/27 14:01:26 sjtan 91 # 92 # syncing with main tree. 93 # 94 # Revision 1.2 2003/10/25 08:29:40 sjtan 95 # 96 # uses gmDispatcher to send new currentPatient objects to toplevel gmGP_ widgets. Proprosal to use 97 # yaml serializer to store editarea data in narrative text field of clin_root_item until 98 # clin_root_item schema stabilizes. 99 # 100 # Revision 1.1 2003/10/23 06:02:40 sjtan 101 # 102 # manual edit areas modelled after r.terry's specs. 103 # Revision 1.16 2003/11/09 14:52:25 ncq 104 # - use new API in clinical record 105 # 106 # Revision 1.15 2003/10/26 01:36:14 ncq 107 # - gmTmpPatient -> gmPatient 108 # 109 # Revision 1.14 2003/06/03 14:28:33 ncq 110 # - some cleanup, Syans work starts looking good 111 # 112 # Revision 1.13 2003/06/01 13:20:32 sjtan 113 # 114 # logging to data stream for debugging. Adding DEBUG tags when work out how to use vi 115 # with regular expression groups (maybe never). 116 # 117 # Revision 1.12 2003/06/01 12:55:58 sjtan 118 # 119 # sql commit may cause PortalClose, whilst connection.commit() doesnt? 120 # 121 # Revision 1.11 2003/06/01 12:46:55 ncq 122 # - only add pathes if running as main so we don't obscure problems outside this module 123 # 124 # Revision 1.10 2003/06/01 01:47:33 sjtan 125 # 126 # starting allergy connections. 127 # 128 # Revision 1.9 2003/05/21 14:11:26 ncq 129 # - much needed rewrite/cleanup of gmEditArea 130 # - allergies/family history edit area adapted to new gmEditArea code 131 # - old code still there for non-converted edit areas 132 # 133 # Revision 1.8 2003/02/02 10:07:58 ihaywood 134 # bugfix 135 # 136 # Revision 1.7 2003/02/02 08:49:49 ihaywood 137 # demographics being connected to database 138 # 139 # Revision 1.6 2003/01/14 20:18:57 ncq 140 # - fixed setfont() problem 141 # 142 # Revision 1.5 2003/01/09 12:01:39 hherb 143 # connects now to database 144 # 145 # @change log: 146 # 10.06.2002 rterry initial implementation, untested 147 # 30.07.2002 rterry images inserted, code cleaned up 14833 if anIconID == None: 34 return self.__icons[_("""icon_letter_A""")] 35 else: 36 if self.__icons.has_key(anIconID): 37 return self.__icons[anIconID] 38 else: 39 return self.__icons[_("""icon_letter_A""")]40
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:56:56 2013 | http://epydoc.sourceforge.net |