Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [tkinter]

Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.

0
votes
2answers
348 views

no module named tkinter

i have never had this issue before. how can i fix this ? it says no module named tkinter (env_maskrcnn) haziq@vita-workstation2:~/human-pose-estimation$ ./run.sh Traceback (most recent call last): ...
0
votes
0answers
50 views

Can't find module tkinter after exporting code from Jupyter

I exported a file from Jupyter to a .py format. The code works fine on Jupyter itself, but when I try to run it directly from the command line I get the following error Traceback (most recent call ...
0
votes
0answers
208 views

Tkinter font not changing on python 3.6.8 on Ubuntu 18.04

I am not able to change the font family of the label in tkinter. I have written the code to explain the issue. I have also attached a link to show the output. (for images please go to this link I ...
0
votes
0answers
137 views

Can't find or install tkinter

I have a problem with the tkinter module in Ubuntu 16.04. It needs to be loaded to run a python3.6 program, but it can't be found: File "/usr/local/bin/declooptor", line 11, in <module> ...
0
votes
2answers
2k views

Running Tkinter programs on Ubuntu 18.04

I'm trying to complete this tutorial https://likegeeks.com/python-gui-examples-tkinter-tutorial/amp/. I have the following code written from tkinter import * window = Tk() window.title('Welcome to ...
0
votes
0answers
156 views

problem with installation pyplot

Ubuntu 16.04 LTS I installed matplotlib in my virtualenv with python 3.5.2. import matplotlib works fine , but when I try import matplotlib.pyplot the OUTPUT is: Traceback (most recent call last): ...
2
votes
3answers
4k views

ImportError: No module named '_tkinter', please install the python3-tk package

After an sudo apt-get upgrade, I get the following error: Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more ...
1
vote
0answers
132 views

After installing Nvidia driver I get “ModuleNotFoundError: No module named 'tkinter'” error in Python3

I tried to install the Nvidia driver (sudo apt-get install nvidia-390) for AI calculations on GPU in Ubuntu 16.04 and 18.04. The installation works, but afterwards python3 is not working and giving ...
1
vote
0answers
363 views

Import tkinter fails in ubuntu on python 3.6

The python 2 install on my ubuntu 17.10 install works fine, Tkinter is imported without errors, but on the python 3 install, import tkinter fails. I've tried to reinstall python3-tk and reinstall ...
2
votes
1answer
1k views

Unable to install python3-tk in my ubuntu machine 16.04

I am trying to make a very first desktop application using tkinter in pycharm like this. from tkinter import * root = Tk() mLabel = Label(root, text="This is Header") mLabel.pack mLabel.mainloop() ...
0
votes
1answer
2k views

I tried to install Tkinter in python. But I cannot install it [duplicate]

I want to install Tkinter in python 2.7.9 I tried sudo apt-get update sudo apt-get install python-tk i even tried to upgrade python so as to install Tkinter but that didn't work either. Everytime i ...
0
votes
0answers
21 views

Installing Tkinter offline [duplicate]

I don't have an internet connection in my Ubuntu. I would like to install tkinter. So is there any way to install tkinter and its dependencies offline ? Note: I don't have any Ubuntu system that is ...
2
votes
2answers
832 views

tkinter - Can't find a usable tk.tcl

When I try the following code : import Tkinter Tkinter._test() I get the following error : Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/...
2
votes
2answers
1k views

Configuring tkinter for python3.4.3 Problem [duplicate]

I'm decently new to using a Raspberry Pi and I'm trying to set up a simple GUI application to launch from my Pi. I'm using a Raspberry Pi3, with Python 3.4.3 installed. When I type python: ~$ python ...
2
votes
2answers
16k views

How can I install tkinter for both python 3.4 and python 3.5?

How can I install tkinter for both python 3.4 and python 3.5? Currently, tkinter is installed for python 3.4 (i.e., import tkinter runs fine in the python 3.4 interpreter). However I don't know how ...
1
vote
0answers
363 views

Python internal terminal shrinking

My problem is somewhere within my code but I cannot find where, the problem is when I push one of the buttons the xterm window intergrated within the program resizes between two buttons (which's space ...
0
votes
1answer
6k views

Listbox with tkinter Treeview, how to avoid empty rows at the end [closed]

I have the following code to build a listbox with Treeview widget. import tkinter as tk import tkinter.ttk as ttk class AppBase: def __init__(self): self.mywin = tk.Tk() self....
3
votes
3answers
38k views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...
4
votes
1answer
4k views

Plotting with Matplotlib in Python 3 pylab: Tkinter and Qt FontManager errors

I'm trying to use pylab (i.e., $ ipython3 --pylab) in Python 3 on Ubuntu 14.04. I'm running into the same error regardless of whether I use the Tkinter or Qt4 backends. AttributeError: 'FontManager' ...
5
votes
4answers
25k views

configure tkinter for python3.4.2

I recently met a problem while installing the newest python3.X. Installed it using the Python-3.4.2.tar.xz package from python.org After, the intallation I tried importing the tkinter module but didn'...