From 9b5c9be88bd2280b8c4fe4ce87ec0d31a77fc997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 8 Jan 2018 02:56:08 +0100 Subject: [PATCH] MiRCARTFrame.py: adds -<{+,-}> {in,de}crease brush size accelerators (hotkeys). --- MiRCARTFrame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MiRCARTFrame.py b/MiRCARTFrame.py index 8f7dcd4..28bc971 100644 --- a/MiRCARTFrame.py +++ b/MiRCARTFrame.py @@ -54,9 +54,9 @@ class MiRCARTFrame(MiRCARTGeneralFrame): CID_PASTE = (0x10c, TID_COMMAND, "Paste", "&Paste", wx.ART_PASTE, None, False) CID_DELETE = (0x10d, TID_COMMAND, "Delete", "De&lete", wx.ART_DELETE, None, False) CID_INCRBRUSH = (0x10e, TID_COMMAND, "Increase brush size", \ - "&Increase brush size", wx.ART_PLUS, None) + "&Increase brush size", wx.ART_PLUS, (wx.ACCEL_CTRL, ord("+"))) CID_DECRBRUSH = (0x10f, TID_COMMAND, "Decrease brush size", \ - "&Decrease brush size", wx.ART_MINUS, None) + "&Decrease brush size", wx.ART_MINUS, (wx.ACCEL_CTRL, ord("-"))) CID_SOLID_BRUSH = (0x110, TID_SELECT, "Solid brush", "&Solid brush", None, None, True) CID_RECT = (0x111, TID_SELECT, "Rectangle", "&Rectangle", None, None, True) CID_CIRCLE = (0x112, TID_SELECT, "Circle", "&Circle", None, None, False) @@ -108,7 +108,7 @@ class MiRCARTFrame(MiRCARTGeneralFrame): # }}} # {{{ Accelerators (hotkeys) AID_EDIT = (0x500, TID_ACCELS, ( \ - CID_NEW, CID_OPEN, CID_SAVE, CID_UNDO, CID_REDO)) + CID_NEW, CID_OPEN, CID_SAVE, CID_UNDO, CID_REDO, CID_INCRBRUSH, CID_DECRBRUSH)) # }}} # {{{ Lists LID_ACCELS = (0x600, TID_LIST, (AID_EDIT))