SolarPixelGaming
SolarPixelGaming

Reputation: 113

I have trouble installing mtTkinter?

This window shows up when I attempt to install mtTkinter with "python mtTkinter.py install" through command prompt:

enter image description here

This is the command prompt log from the install:

enter image description here

(Highlighter and added/blue pen area is the log)

I am working on a clicker game, like cookie clicker, and Tkinter tends to freeze when using threading. I found mtTkinter, which is multithreading safe.

So I typed in "python mtTkinter.py install" into command prompt. There is no error, it just does not install. The window that opened had the two buttons, [Click Me!] (which gets square brackets added to it over and over) and then QUIT. The Click Me button does nothing, and the quit button closes it. I am running Windows Vista Python 2.7.11. What am I doing wrong?

Keep in mind I am a beginner at python and computer science, so please be simple with your answers.

Upvotes: 1

Views: 1017

Answers (1)

Tadhg McDonald-Jensen
Tadhg McDonald-Jensen

Reputation: 21453

Most tutorials that indicate to run:

python setup.py install

Will use the specific filename setup.py, usually if there is no setup.py the file is usable as it is or needs to be installed manually, in this case the mtTkinter.py file has no need for installation.

The reason you were seeing the startup window is that that is the test app when you run tkinter as the main program (which is what you did) you could see the same popup from the original tkinter by running:

python -m Tkinter

(The -m indicates to run a module) Obviously tkinter is not an installation package and it actually ignored the install argument entirely, it just went to the test app.

Upvotes: 1

Related Questions