Package Gnumed :: Package wxpython :: Package patient :: Module gmCrypto
[frames] | no frames]

Source Code for Module Gnumed.wxpython.patient.gmCrypto

 1  # a simple wrapper for the cryptowidget 
 2   
 3  try: 
 4          import wxversion 
 5          import wx 
 6  except ImportError: 
 7          from wxPython import wx 
 8   
 9  from Gnumed.wxpython import gmPlugin_Patient, images_gnuMedGP_Toolbar, gmCryptoText  
10   
11  ID_CRYPTO = wxNewId () 
12   
13 -class gmCrypto (gmPlugin_Patient.wxPatientPlugin):
14 """ 15 Plugin to encapsulate the cryptowidget 16 """
17 - def name (self):
18 return 'Test cryptowidget'
19
20 - def MenuInfo (self):
21 return ('view', '&Crypto')
22
23 - def GetIcon (self):
24 return wxBitmapFromXPMData([ 25 "16 16 2 1", 26 " c None", 27 ". c #ED0B47", 28 " ", 29 " ", 30 " ", 31 " . ", 32 " . . ", 33 " . .", 34 " ........... .", 35 " ........... .", 36 " .. .. . .", 37 " .. .. . . ", 38 " .. .. . ", 39 " .. .. ", 40 " ", 41 " ", 42 " ", 43 " "])
44
45 - def GetWidget (self, parent):
46 return gmCryptoText.gmCryptoText (parent, -1)
47