libroar/RoarCanvasCommandsEdit.py:canvasColourAlpha_(): fix signature.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-12 10:03:29 +02:00
parent 7a4e1b23e9
commit 8485ab568d

View File

@ -95,7 +95,7 @@ class RoarCanvasCommandsEdit():
# {{{ canvasColourAlpha(self, f, idx) # {{{ canvasColourAlpha(self, f, idx)
@GuiSelectDecorator(0, "Transparent colour", "Transparent colour", None, None, False) @GuiSelectDecorator(0, "Transparent colour", "Transparent colour", None, None, False)
def canvasColourAlpha(self, f, idx): def canvasColourAlpha(self, f, idx):
def canvasColourAlpha_(self, event): def canvasColourAlpha_(event):
if event.GetEventType() == wx.wxEVT_TOOL: if event.GetEventType() == wx.wxEVT_TOOL:
self.parentCanvas.brushColours[0] = -1 self.parentCanvas.brushColours[0] = -1
elif event.GetEventType() == wx.wxEVT_TOOL_RCLICKED: elif event.GetEventType() == wx.wxEVT_TOOL_RCLICKED: