next up previous contents index
Next: Controlling VMD from Python Up: Python callbacks Previous: Python callbacks   Contents   Index

Using Tkinter menus in VMD

The object-oriented interface to Tk known as Tkinter is included with the embedded Python interpreter. You can create Tkinter GUI's in the usual way; VMD will take care of updating your GUI windows for you, so there is no need to call the mainloop method of the Tk module. This method should not be called when the Tkinter GUI is running inside of VMD, because it will interfere with VMD's own event loop.