mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
MiRCARTFrame.py:MiRCARTFrame.onFrameCommand(): don't decrease brush size below (1,1).
MiRCARTFrame.py:MiRCARTFrame.onFrameCommand(): remove debugging print()s.
This commit is contained in:
parent
da82a543b5
commit
30f3688a2c
@ -340,14 +340,13 @@ class MiRCARTFrame(MiRCARTGeneralFrame):
|
||||
elif cid == self.CID_DELETE[0]:
|
||||
pass
|
||||
elif cid == self.CID_INCRBRUSH[0]:
|
||||
self.panelCanvas.brushSize = \
|
||||
self.panelCanvas.brushSize = \
|
||||
[a+1 for a in self.panelCanvas.brushSize]
|
||||
print(self.panelCanvas.brushSize)
|
||||
elif cid == self.CID_DECRBRUSH[0] \
|
||||
and self.panelCanvas.brushSize != [0,0]:
|
||||
self.panelCanvas.brushSize = \
|
||||
elif cid == self.CID_DECRBRUSH[0] \
|
||||
and self.panelCanvas.brushSize[0] > 1 \
|
||||
and self.panelCanvas.brushSize[1] > 1:
|
||||
self.panelCanvas.brushSize = \
|
||||
[a-1 for a in self.panelCanvas.brushSize]
|
||||
print(self.panelCanvas.brushSize)
|
||||
elif cid == self.CID_SOLID_BRUSH[0]:
|
||||
pass
|
||||
elif cid == self.CID_RECT[0]:
|
||||
@ -356,7 +355,7 @@ class MiRCARTFrame(MiRCARTGeneralFrame):
|
||||
pass
|
||||
elif cid == self.CID_LINE[0]:
|
||||
pass
|
||||
elif cid >= self.CID_COLOUR00[0] \
|
||||
elif cid >= self.CID_COLOUR00[0] \
|
||||
and cid <= self.CID_COLOUR15[0]:
|
||||
numColour = cid - self.CID_COLOUR00[0]
|
||||
if event.GetEventType() == wx.wxEVT_TOOL:
|
||||
|
Loading…
Reference in New Issue
Block a user