Does anyone have a Python example that puts together a menu? I've been trying to put stuff in a MinorMode's init or calling setMenu but haven't gotten anything that works.
Thanks in advance.
Does anyone have a Python example that puts together a menu? I've been trying to put stuff in a MinorMode's init or calling setMenu but haven't gotten anything that works.
Thanks in advance.
Hi Tomas,
The syntax for constructing menus in Python is very similar to Mu. It is good to remember that for Python the Menus are made from Python lists and the Menu Items are made up from tuples. There are some good Mu and Python examples in Chapter 7 of the Reference Manual. Please take a look at these two sections specifically:
http://www.tweaksoftware.com/static/documentation/rv/current/html/rv_reference.html#toc-Section-7.1
http://www.tweaksoftware.com/static/documentation/rv/current/html/rv_reference.html#toc-Section-7.2
Thanks Jon, this is exactly what I needed.