Depending on how you installed Python on Mac OS X, you may find different folders in /Applications. There are different versions of IDLE installed for each Python version. #Activetcl python install#Instead, install a newer version of Python that supports a newer version of Tk. Because of this, we strongly recommend that you do not attempt to use Tkinter or IDLE with the Apple-supplied Python 2.6.1 in 10.6. IDLE is known to hang or crash when used with the Apple 8.5.7 included in all versions of macOS 10.6.x. While Javascript is not essential for this website, your interaction with the content will be limited. The official home of the Python Programming Language. The installation process is very fast When Python 3 is installed, you will see the Python3 folder in /Applications on your Mac. Python 3.6.x requires about 100MB of available disk space. Visit and download the latest available Python installer file Run the downloaded file and install Python 3.x on Mac. Though there are other distributions available, none of them have the features you'll need if you only want Tk (and the Standard distribution is also free). To install ActiveTCL, go to ActiveTCL's download page and download the 8.4 version of the Standard distribution. ActiveTcl Community Edition is free to use in development. Well, I think a few of us using CSR bluetooth modules, and probably Tkinter as well, so I thought it worth to share this experience, strange as it is.On AIX or HP-UX you can alternatively run gunzip at the shell prompt: gunzip < /path/to/ | tar xf - In the directory where you extracted the archive, run the install.sh installer script, which will automatically select between the GUI or text-based installer depending on your system configuration.ĭownload and install Tcl with ActiveTcl, the precompiled, supported Tcl distribution. It is strange, but it looks like, that installing CSR's BlueSuite corrupts the TCL path variables. I changed it to 'c:\Python34\tcl\tcl8.6\' aaand. TCL_LIBRARY 'C:\Program Files (x86)\CSR\BlueSuite 2.5.0' Hmmm, lets check the environmental variables. Strange, as CSR is the manufacturer of the main chip of the deservedly popular HC-05 and HC-06 Bluetooth modules (I own quite a few ones myself), but it is nothing to do with tkinter of tcl/tk. How does the 'C:\Program Files (x86)\CSR\BlueSuite 2.5.0' relates to here? But I gave it a go, downloaded and installed ActiveTcl, as tcl.tk recommends it. Hmm, should I install Tcl separately? Nobody mentioned ever. This probably means that Tcl wasn't installed properly.įair enough, there is no Tcl in any of the directories listed. _tkinter.TclError: Can't find a usable init.tcl in the following directories: Self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) Well, OK, I'm using Pyhton 3.4 (because I can), so I figured out quite fast, that I just have to write Tkinter with lowercase 'T'.īut it took only a few more lines to bump into an other error: it failed at the class's _init_.įile "C:\Users\blah\py_workspace\blah\balh.py", line 8, inįile "C:\Python34\lib\tkinter\_init_.py", line 1851, in _init_ #Activetcl python code#Obviously the code of the tutorial failed after typing the first line: So I typed the magic words: 'python tk' into Google, and chose this page: as a staring point to jump in the topic. Normally I would use C# for this kind of task (don't judge me, I have reasons, okay?!), but lately I used Python a lot, so thought it would be great time to get to know Tkinter (which wraps Tcl/Tk GUI tools). So, I decided to write a simple helper app (watch out, an other side project!) with nice numeric-up-down/spinner controls and buttons. #Activetcl python serial#It never meant to be more than a quick hack, so to keep it simple it doesn't have any user interface, and receives its settings from serial port, in raw binary frames.įor the first few hours I used Realterm to write and send to the COM port these hex byte strings. #Activetcl python generator#So, on the other day, I built a little impulse generator circuit as a side project of one of my side projects. Can't find a usable init.tcl in the following directories _tkinter.TclError: Can't find a usable init.tcl in the following directories
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |