Created new MicroscopeViewPlugin class to give shortcut to an associated MicroscopePlugin
This commit is contained in:
parent
5b7f6a0e44
commit
71b5c685ca
1 changed files with 14 additions and 1 deletions
|
|
@ -10,4 +10,17 @@ class MicroscopeView(MethodView):
|
|||
"""
|
||||
self.microscope = microscope
|
||||
|
||||
MethodView.__init__(self, **kwargs)
|
||||
MethodView.__init__(self, **kwargs)
|
||||
|
||||
|
||||
class MicroscopeViewPlugin(MicroscopeView):
|
||||
|
||||
def __init__(self, microscope, plugin=None, **kwargs):
|
||||
"""
|
||||
Create a generic MethodView with a globally available
|
||||
microscope object passed as an argument, and a plugin
|
||||
reference stored in 'self'. Initially None
|
||||
"""
|
||||
self.plugin = plugin
|
||||
|
||||
MicroscopeView.__init__(self, microscope=microscope, **kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue