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

Source Code for Module Gnumed.wxpython.gui.gmWaitingListPlugin

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