Package Gnumed :: Package wxpython :: Package patient :: Module gmGP_Allergies |
[frames] | no frames]

# Source Code for Module Gnumed.wxpython.patient.gmGP_Allergies

     1  # -*- coding: utf-8 -*-
     2  #============================================================================
     3  # gmGP_Allergies
     4  #
     5  # @dependencies: wxPython (>= version 2.3.1)
     6  #============================================================================
     7  __author__  = "R.Terry <rterry@gnumed.net>, H.Herb <hherb@gnumed.net>, K.Hilbert <Karsten.Hilbert@gmx.net>"
     8  __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
     9
    10
    11  from Gnumed.wxpython import gmPlugin_Patient, gmAllergyWidgets
    12
    13  #============================================================================
    14 -class gmGP_Allergies (gmPlugin_Patient.wxPatientPlugin):
    15          """Plugin to encapsulate the allergies window"""
    16
    17          __icons = {
    18  """icon_letter_A""": 'x\xda\xd3\xc8)0\xe4\nV74S\x00"\x13\x05Cu\xae\xc4`\xf5|\x85d\x05e\x17W\x10\
    19  \x04\xf3\xf5@|77\x03 \x00\xf3\x15\x80|\xbf\xfc\xbcT0\'\x02$i\xee\x06\x82PIT@\
    20  HPO\x0f\xab`\x04\x86\xa0\x9e\x1e\\)\xaa`\x04\x9a P$\x02\xa6\x14Y0\x1f\xa6\
    21  \x14&\xa8\x07\x05h\x82\x11\x11 \xfd\x11H\x82 1\x84[\x11\x82Hn\x85i\x8f\x80\
    22  \xba&"\x82\x08\xbf\x13\x16\xd4\x03\x00\xe4\xa2I\x9c'
    23  }
    24
    25 -        def name (self):
    26                  return 'Allergies'
    27
    28 -        def MenuInfo (self):
    29                  return ('view', '&Allergies')
    30
    31 -        def GetIconData(self, anIconID = None):
    32                  if anIconID == None:
    33                          return self.__icons[_("""icon_letter_A""")]
    34                  else:
    35                          if anIconID in self.__icons:
    36                                  return self.__icons[anIconID]
    37                          else:
    38                                  return self.__icons[_("""icon_letter_A""")]
    39
    40 -        def GetWidget (self, parent):
    41                  pass
    42  #               return gmAllergyWidgets.cAllergyPanel (parent, -1)
    43
    44  #============================================================================
    45  if __name__ == "__main__":
    46          print "no unit test available"
    47  #       from wxPython.wx import *
    48  #       app = wxPyWidgetTester(size = (600, 600))
    49  #       app.SetWidget(AllergyPanel, -1)
    50  #       app.MainLoop()
    51  #============================================================================
    52