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

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

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