The following are 48 code examples for showing how to use tkinter.Listbox().They are extracted from open source Python projects. You can vote up the examples you like or vote down the exmaples you don't like. PAGE is a drag-and-drop GUI generator for Python and Tkinter which generates Python modules which display a relatively simple GUI constructed from Tk and ttk widget sets using the Place Geometry Manager. PAGE is a cross platform tool runing on any OS which has Tcl/Tk installed.
(Feb-08-2018, 12:32 PM)Ganttictemp Wrote: It is executed through Reaper. Don't know if that may interfere. Maybe if Reaper has its own Python interpreter, different from the system-wide installed From Reaper docs: Quote:Python requirements You must have Python installed on your computer and enabled in REAPER preferences (Options Preferences Plug-Ins ReaScript).
ReaScript should work with any version of Python between 2.7 and the current 3.x release. OS X normally comes with Python already installed. If you don't already have Python, it is available as a free download for Windows or Mac from multiple sources. For 32-bit REAPER, you need 32-bit Python (regardless of the operating system).
For 64-bit REAPER, you need 64-bit Python. A list of Python distributions is here. Maybe you can check in Reaper prefernces and make sure you use the same python version/installation that has tkinter and for which the small test dialog works. Python scripts without GUI run properly for us in Reaper. I mean, we do have Python enabled in preferences, but, yeah, I think you guys are close. Maybe we need to set it up differently.
I did run this: import sys raise RuntimeError(sys.path) And all I got is references to Python 2.7, so that may be it. Supposedly, Python 3.6 is installed. We must find a way to force Reaper to use the proper one, I guess. Somehow they are in different folders, as if OSX were using 2.7 by default. I remember something about it. Thanks both of you!