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

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

     1  #======================================================================
     2  # GNUmed immunisation/vaccination patient plugin
     3  #
     4  # this plugin holds the immunisation details
     5  #
     6  # @copyright: author
     7  #======================================================================
     8  # $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/client/wxpython/patient/gmGP_Immunisation.py,v $
     9  # $Id: gmGP_Immunisation.py,v 1.35 2004-07-17 11:00:31 ncq Exp $
    10  __version__ = "$Revision: 1.35 $"
    11  __author__ = "R.Terry, S.J.Tan, K.Hilbert"
    12  __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
    13
    14  from Gnumed.wxpython import gmPlugin_Patient, gmVaccWidgets
    15
    16  #======================================================================
    17 -class gmGP_Immunisation(gmPlugin_Patient.wxPatientPlugin):
    18          """Plugin to encapsulate the immunisation window."""
    19
    20          __icons = {
    21  """icon_syringe""": 'x\xdam\xd0\xb1\n\x80 \x10\x06\xe0\xbd\xa7\xf8\xa1\xc1\xa6\x9f$\xe8\x01\x1a\
    22  \x1a[Z\\#\x9a\x8a\xea\xfd\xa7N3\xf4\xb0C\x90\xff\xf3\x0e\xd4\xe6\xb8m5\x1b\
    23  \xdbCV\x07k\xaae6\xc4\x8a\xe1X\xd6=$H\x9a\xaes\x0b\xc1I\xa8G\xa9\xb6\x8d\x87\
    24  \xa9H\xa0@\xafe\xa7\xa8Bi\xa2\xdfs$\x19,G:\x175\xa1\x98W\x85\xc1\x9c\x1e\xcf\
    25  Mc4\x85\x9f%\xfc\xae\x93!\xd5K_\xd4\x86\xf8\xa1?\x88\x12\xf9\x00 =F\x87'
    26  }
    27
    28 -        def name (self):
    29                  return 'Immunisations Window'
    30
    31 -        def MenuInfo (self):
    32                  return ('view', '&Immunisation')
    33
    34 -        def GetIconData(self, anIconID = None):
    35                  if anIconID is None:
    36                          return self.__icons[_("""icon_syringe""")]
    37                  else:
    38                          if self.__icons.has_key(anIconID):
    39                                  return self.__icons[anIconID]
    40                          else:
    41                                  return self.__icons[_("""icon_syringe""")]
    42
    43 -        def GetWidget (self, parent):
    44                  return gmVaccWidgets.ImmunisationPanel (parent, -1)
    45  #======================================================================
    46  # main
    47  #----------------------------------------------------------------------
    48  if __name__ == "__main__":
    49          print "there isn't really any unit test for this"
    50  #       from wxPython.wx import *
    51  #       app = wxPyWidgetTester(size = (600, 600))
    52  #       app.SetWidget(gmVaccWidgets.ImmunisationPanel, -1)
    53  #       app.MainLoop()
    54  #======================================================================
    55