remove environment parameter and pass it via initialisation
This commit is contained in:
@@ -10,16 +10,16 @@ class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def initialize(self, environment):
|
||||
pass
|
||||
def shutdown(self, environment):
|
||||
self.env = environment
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self, environment):
|
||||
def getDescription(self):
|
||||
return 'clears the currently selected clipboard'
|
||||
|
||||
def run(self, environment):
|
||||
environment['commandBuffer']['currClipboard'] = -1
|
||||
del environment['commandBuffer']['clipboard'][:]
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard cleared', interrupt=True)
|
||||
def run(self):
|
||||
self.env['commandBuffer']['currClipboard'] = -1
|
||||
del self.env['commandBuffer']['clipboard'][:]
|
||||
self.env['runtime']['outputManager'].presentText('clipboard cleared', interrupt=True)
|
||||
return
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user