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

Source Code for Module Gnumed.wxpython.gui.gmWaitingListPlugin

 1  # -*- coding: utf-8 -*- 
 2  #===================================================== 
 3  # GNUmed waiting list 
 4  #===================================================== 
 5  __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 6  __license__ = "GPL" 
 7   
 8  from Gnumed.wxpython import gmPlugin, gmWaitingListWidgets 
 9  from Gnumed.wxpython import gmAccessPermissionWidgets 
10 11 #====================================================================== 12 -class gmWaitingListPlugin(gmPlugin.cNotebookPlugin):
13 """Plugin to encapsulate the waiting list.""" 14 15 tab_name = _('Waiting list') 16 required_minimum_role = 'non-clinical access' 17 18 @gmAccessPermissionWidgets.verify_minimum_required_role ( 19 required_minimum_role, 20 activity = _('loading plugin <%s>') % tab_name, 21 return_value_on_failure = False, 22 fail_silently = False 23 )
24 - def register(self):
26 #--------------------------------------------------------
27 - def __init__(self):
29 #--------------------------------------------------------
30 - def name(self):
32 #--------------------------------------------------------
33 - def GetWidget(self, parent):
34 self._widget = gmWaitingListWidgets.cWaitingListPnl(parent, -1) 35 return self._widget
36 #--------------------------------------------------------
37 - def MenuInfo(self):
38 return ('office', _('&Waiting list'))
39 #--------------------------------------------------------
40 - def can_receive_focus(self):
41 return True
42 #====================================================================== 43