Once the Move Relative (Change Mouse Position) action has created, it is not possible to re-open the configuration for it, getting the exception:
Code: Select all
Error while configuring: Change Mouse position by x:None, y:-100
Traceback (most recent call last):
File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 305, in OnLeftDoubleClick
eg.UndoHandler.Configure().Try(self.document)
File "C:\Program Files\EventGhost\eg\Classes\UndoHandler\Configure.py", line 29, in Try
eg.Greenlet(self.Do).switch(item)
File "C:\Program Files\EventGhost\eg\Classes\UndoHandler\Configure.py", line 54, in Do
newArgs = gr.switch(*item.GetArgs())
File "C:\Program Files\EventGhost\plugins\Mouse\__init__.py", line 401, in Configure
xCtrl.Enable(False)
UnboundLocalError: local variable 'xCtrl' referenced before assignmentCode: Select all
if x is None:
x = 0
xCtrl.Enable(False)
xCtrl = panel.SpinIntCtrl(x, min=-maxint-1, max=maxint)
yCB = panel.CheckBox(y is not None, text.text3)
def HandleYCheckBox(event):
yCtrl.Enable(event.IsChecked())
yCB.Bind(wx.EVT_CHECKBOX, HandleYCheckBox)
if y is None:
y = 0
yCtrl.Enable(False)
yCtrl = panel.SpinIntCtrl(y, min=-maxint-1, max=maxint)
Code: Select all
xCtrl = panel.SpinIntCtrl(x, min=-maxint-1, max=maxint)
if x is None:
x = 0
xCtrl.Enable(False)
yCB = panel.CheckBox(y is not None, text.text3)
def HandleYCheckBox(event):
yCtrl.Enable(event.IsChecked())
yCB.Bind(wx.EVT_CHECKBOX, HandleYCheckBox)
yCtrl = panel.SpinIntCtrl(y, min=-maxint-1, max=maxint)
if y is None:
y = 0
yCtrl.Enable(False)