-
Notifications
You must be signed in to change notification settings - Fork 0
ExtensionDevelopment
First, ad-hoc method, not a formal extension: See WikidPad-Menu->Help, Page "InlinePythonEval".
Second method, "real" extensions: Not much formal documentation, but looking at C:\Programme\WikidPad\extensions\autoNew.py (or its "real OS" equivalent :]) will get you going. But put your own extensions into "WikidPad\user_extensions", otherwise they might be lost when you update WikidPad.
- Search through both WikidPad mailing lists referenced on WikidPad's homepage.
- DeveloperOverview
- DeveloperGettingStarted
ReloadMenuPlugins is helpful for debugging.
For "real" extensions:
- extensions-directory in WikidPad's install dir
General WikidPad development:
- ListOfUserScripts
- WikidPad's source code
- probably in WikidPad's mailing lists
The function describeMenuItems returns one or more tuples, each tuple describing an entry in "Plugins" menu. The second part of the tuple (menu item string) can contain a shortcut after the actual item text, delimited by a \t. It is enough to enter a shortcut in this way, wxPython handles it then automatically.
Example from "WikidPad\extensions\autoNew.py" (about line 47):
return ((autoNew, "Create new page\tShift-Ctrl-N", "Create new page"),)
This line is enough to register "Shift-Ctrl-N" as shortcut.
Source: http://trac.wikidpad2.webfactional.com/wiki/ExtensionDevelopment