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

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

     1  #======================================================================
     2  # GNUmed patient measurements plugin
     3  #
     4  # @copyright: author
     5  #======================================================================
     6  __author__ = "Karsten Hilbert"
     7  __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
     8
     9  import logging
    10
    11
    12  from Gnumed.wxpython import gmPlugin, gmMeasurementWidgets
    13  from Gnumed.pycommon import gmI18N
    14
    15
    16  _log = logging.getLogger('gm.ui')
    17  #======================================================================
    18 -class gmMeasurementsGridPlugin(gmPlugin.cNotebookPlugin):
    19          """Plugin to encapsulate patient measurements."""
    20
    21          tab_name = _('Measurements')
    22
    23 -        def name (self):
    24                  return gmMeasurementsGridPlugin.tab_name
    25
    26 -        def GetWidget (self, parent):
    27                  self._widget = gmMeasurementWidgets.cMeasurementsPnl(parent, -1)
    28                  return self._widget
    29
    30 -        def MenuInfo (self):
    31                  return ('emr', _('&Measurements'))
    32
    33 -        def can_receive_focus(self):
    34                  if not self._verify_patient_avail():
    35                          return None
    36                  return 1
    37  #======================================================================
    38  # main
    39  #----------------------------------------------------------------------
    40  if __name__ == "__main__":
    41          print "no test code"
    42
    43  #======================================================================
    44