]> git.saurik.com Git - wxWidgets.git/commitdiff
Remapped zoom/unzoom to Ctrl keys
authorRobin Dunn <robin@alldunn.com>
Tue, 27 Mar 2001 17:29:56 +0000 (17:29 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 27 Mar 2001 17:29:56 +0000 (17:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxStyledTextCtrl_2.py

index 8eac0b58509b43355df4c5e1274e71968fca6e4a..ee2570b9d387567622daa961366a135823e6446f 100644 (file)
@@ -40,6 +40,9 @@ class PythonSTC(wxStyledTextCtrl):
     def __init__(self, parent, ID):
         wxStyledTextCtrl.__init__(self, parent, ID)
 
+        self.CmdKeyAssign(ord('B'), wxSTC_SCMOD_CTRL, wxSTC_CMD_ZOOMIN)
+        self.CmdKeyAssign(ord('N'), wxSTC_SCMOD_CTRL, wxSTC_CMD_ZOOMOUT)
+
         self.SetLexer(wxSTC_LEX_PYTHON)
         self.SetKeyWords(0, string.join(keyword.kwlist))