Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.
Questions tagged [tkinter]
35 questions
7
votes
4 answers
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
Reading state information... Done
python-tk is…
user284234
5
votes
4 answers
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't succeed.
The output of import tkinter was:…
devGeek
- 594
4
votes
1 answer
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' object has no attribute 'ttf_lookup_cache'
This…
Arthur
- 418
3
votes
2 answers
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 "", line 1, in
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3835, in _test
root =…
Zeiad Badawy
- 31
3
votes
1 answer
Cannot Run .py File In QTerminal (tkinter)
I'm really trying to run this simple .py file in QTerminal, but no matter what I try, I just can't get it to run. There's nothing special or complicated about the code in the file, it's just something simple.
Every time I try to run the file I…
Akendolfr
- 81
3
votes
0 answers
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 have posted the same question here.…
Star Rider
- 131
2
votes
2 answers
Configuring tkinter for python3.4.3 Problem
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
Python 3.4.3 |Continuum Analytics, Inc.| (default,…
J. Schach
- 21
- 2
2
votes
2 answers
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 to install tkinter for python 3.5.
sudo apt-get…
Franck Dernoncourt
- 3,548
2
votes
1 answer
X Error of failed request: BadLength (poly request too large or internal Xlib length error)
X Error of failed request: BadLength (poly request
too large or internal Xlib length error) Major opcode of failed
request: 139 (RENDER) Minor opcode of failed request: 20
(RenderAddGlyphs) Serial number of failed request: 689 …
fabien
- 21
2
votes
0 answers
Python3.5-tk in Ubuntu18.04
I installed python3.5 and some package like opencv, Tesrflow, keras and etc when my Linux version was 16.04. But after upgrading the Linux version from 16.04 to 18.04, the new version of python 3.6 has been installed. So, I face with major…
yaser gholizade
- 21
- 3
2
votes
2 answers
Why is my simple Python stopwatch script taking up so much computer resources?
I started using a Python script for a stopwatch today and noticed a significant slow down in all the other things I have opened (Firefox, Sublime Text, Terminal). System Monitor is telling me my stopwatch script is using about 24% of my CPU. Seems…
Minh Tran
- 55
- 6
2
votes
3 answers
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 information.
>>> import tkinter
Traceback (most recent…
Martin Thoma
- 20,535
2
votes
1 answer
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()
But I got an exception saying
ImportError: No…
Ram Mandal
- 123
1
vote
0 answers
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 is tiny)
import Tkinter
from Tkinter import…
patrick
- 573
1
vote
1 answer
Listbox with tkinter Treeview, how to avoid empty rows at the end
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.mywin.geometry("%dx%d+%d+%d" % (800, 600, 5, 5))
…
gaiapac
- 109