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

Source Code for Module Gnumed.wxpython.gui.gmKOrganizerPlugin

 1  #===================================================== 
 2  # GNUmed KOrganizer link 
 3  #===================================================== 
 4  # $Source: /cvsroot/gnumed/gnumed/gnumed/client/wxpython/gui/gmKOrganizerPlugin.py,v $ 
 5  # $Id: gmKOrganizerPlugin.py,v 1.4 2009/06/29 15:13:25 ncq Exp $ 
 6  __version__ = "$Revision: 1.4 $" 
 7  __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 8  __license__ = "GPL" 
 9   
10  import os, sys 
11   
12  from Gnumed.wxpython import gmPlugin, gmDemographicsWidgets 
13  from Gnumed.pycommon import gmExceptions, gmShellAPI 
14   
15  #====================================================================== 
16 -class gmKOrganizerPlugin(gmPlugin.cNotebookPlugin):
17 """Plugin to encapsulate a simple KOrganizer link window.""" 18 19 tab_name = _('Appointments') 20 #--------------------------------------------------------
21 - def __init__(self):
22 # detect KOrganizer 23 found, cmd = gmShellAPI.detect_external_binary(binary = 'konsolekalendar') 24 if not found: 25 raise gmExceptions.ConstructorError('cannot detect "konsolekalendar" via [%s]' % cmd) 26 27 gmPlugin.cNotebookPlugin.__init__(self)
28 #--------------------------------------------------------
29 - def name(self):
31 #--------------------------------------------------------
32 - def GetWidget(self, parent):
33 self._widget = gmDemographicsWidgets.cKOrganizerSchedulePnl(parent, -1) 34 return self._widget
35 #--------------------------------------------------------
36 - def MenuInfo(self):
37 return ('office', _('&Appointments'))
38 #--------------------------------------------------------
39 - def can_receive_focus(self):
40 return True
41 #====================================================================== 42 # $Log: gmKOrganizerPlugin.py,v $ 43 # Revision 1.4 2009/06/29 15:13:25 ncq 44 # - improved placement in menu hierarchy 45 # - add active letters 46 # 47 # Revision 1.3 2008/01/14 20:46:20 ncq 48 # - use detect_external_binary() 49 # 50 # Revision 1.2 2007/10/12 07:28:25 ncq 51 # - lots of import related cleanup 52 # 53 # Revision 1.1 2007/07/09 11:10:24 ncq 54 # - new plugin :-) 55 # 56 # Revision 1.1 2007/04/06 23:09:13 ncq 57 # - this is new 58 # 59 # 60