src/eric7/Plugins/PluginVmListspace.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 10061
8bdad5699288
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
37 37
38 def previewPix(): 38 def previewPix():
39 """ 39 """
40 Module function to return a preview pixmap. 40 Module function to return a preview pixmap.
41 41
42 @return preview pixmap (QPixmap) 42 @return preview pixmap
43 @rtype QPixmap
43 """ 44 """
44 fname = os.path.join( 45 fname = os.path.join(
45 os.path.dirname(__file__), "ViewManagerPlugins", "Listspace", "preview.png" 46 os.path.dirname(__file__), "ViewManagerPlugins", "Listspace", "preview.png"
46 ) 47 )
47 return QPixmap(fname) 48 return QPixmap(fname)
54 55
55 def __init__(self, ui): 56 def __init__(self, ui):
56 """ 57 """
57 Constructor 58 Constructor
58 59
59 @param ui reference to the user interface object (UI.UserInterface) 60 @param ui reference to the user interface object
61 @type UserInterface
60 """ 62 """
61 super().__init__(ui) 63 super().__init__(ui)
62 self.__ui = ui 64 self.__ui = ui
63 65
64 def activate(self): 66 def activate(self):
65 """ 67 """
66 Public method to activate this plugin. 68 Public method to activate this plugin.
67 69
68 @return tuple of reference to instantiated viewmanager and 70 @return tuple of reference to instantiated viewmanager and
69 activation status (boolean) 71 activation status
72 @rtype bool
70 """ 73 """
71 from eric7.Plugins.ViewManagerPlugins.Listspace.Listspace import Listspace 74 from eric7.Plugins.ViewManagerPlugins.Listspace.Listspace import Listspace
72 75
73 self.__object = Listspace(self.__ui) 76 self.__object = Listspace(self.__ui)
74 return self.__object, True 77 return self.__object, True

eric ide

mercurial