Gnumed.wxpython.gui.gmAU_VaccV01Plugin

Package Gnumed :: Package wxpython :: Package gui :: Module gmAU_VaccV01Plugin |
[frames] | no frames]

# Source Code for Module Gnumed.wxpython.gui.gmAU_VaccV01Plugin

     1  #======================================================================
     2  # GNUmed patient AU_VaccV01 plugin
     3  # ----------------------------------------------
     4  #
     5  # @copyright: author
     6  #======================================================================
     7  __version__ = "$Revision: 1.2 $"
     8  __author__ = "S Tan"
     9  __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
    10
    11  from Gnumed.wxpython import gmPlugin, gmAU_VaccV01
    12
    13  _log = gmLog.gmDefLog
    14  _log.Log(gmLog.lInfo, __version__)
    15
    16  #======================================================================
    17 -class gmAU_VaccV01Plugin(gmPlugin.cNotebookPlugin):
    18          """Plugin to encapsulate patient AU_VaccV01 window."""
    19
    20          tab_name = _('AU Vacc')
    21
    22 -        def name (self):
    23                  return gmAU_VaccV01Plugin.tab_name
    24
    25 -        def GetWidget (self, parent):
    26                  self._widget = gmAU_VaccV01.cAU_VaccV01Panel(parent, -1)
    27                  return self._widget
    28
    29 -        def MenuInfo (self):
    30                  return ('vaccination', _('maintain vaccination history'))
    31
    32 -        def can_receive_focus(self):
    33                  # need patient
    34                  if not self._verify_patient_avail():
    35                          return None
    36                  return 1
    37
    38  #======================================================================
    39  # main
    40