tkinter Questions
9
Solved
I have a list of tkinter widgets that I want to change dynamically.
How to delete the widgets from the window?
3
I got a problem with changing the height of the Treeview.heading. I have found some answers about the dimensions of Treeview.column, but when I access Treeview.heading in the documentation, there i...
Cornerstone asked 29/1, 2020 at 15:22
11
I have input values of x, y coordinates in the following format:
[[1,1], [2,1], [2,2], [1,2], [0.5,1.5]]
I want to draw polygons, but I don't know how to draw them!
Thanks
Millinery asked 15/5, 2017 at 3:42
4
Solved
Tkinter's canvas widget has built-in features to:
move/pan the canvas (for example with Click + Drag) with canvas.scan_mark and canvas.scan_dragto, see this question
zoom the vector elements on t...
Defecate asked 14/1, 2017 at 23:35
2
Solved
I wrote this simple code using grid(), but there seem to be a problem and shows the error :
class Input_screen:
def __init__(self,master):
frame = Frame(master)
frame.pack()
self.name_lable...
0
In my application I have a main frame. Then make a login frame inside the main frame.
Then make a notebook frame inside the login Frame.
But inside the notebook frame, ttk combobox, butoon are not ...
2
How can I add the Manu bar in my custom TKinter window?
I want to add a menu bar in my custom TKinter window.
11
Solved
I want to run multiple functions when I click a button. For example I want my button to look like
self.testButton = Button(self, text = "test",
command = func1(), command = func2())
when I exe...
Tintometer asked 13/12, 2012 at 17:15
4
Solved
In Python tkinter module, <Button-1>, <Button-2> and <Button-3> are used to identify mouse button clicks for left, middle and right buttons respectively.
Likewise, <KeyPress-R...
4
Solved
I have seen many different things go wrong when trying to use the Tkinter standard library package, or its related functionality (turtle graphics using turtle and the built-in IDLE IDE), or with th...
Gudrin asked 25/4, 2023 at 20:32
6
Solved
I am setting up a remote workstation to run machine learning related python code from my laptop on another computer that includes a GPU.
I use the SSH remote feature of vscode to remotely run and...
Anticipant asked 22/7, 2019 at 19:43
2
Solved
So I was debugging some of my code today and noticed a new message in the output:
can't invoke "event" command: application has been destroyed
while executing
"event generate $w <<ThemeChan...
Huguenot asked 25/7, 2017 at 16:37
4
Solved
My program uses a ttk.Treeview as a table and fills it with many numbers.
I want to clear the ttk.Treeview when I press a button in the window.
Is there a simple way to clear the ttk.Treeview?
T...
7
Solved
How can I tell a Tkinter window where to open, based on screen dimensions? I would like it to open in the middle.
Geodesy asked 16/2, 2013 at 13:30
3
Solved
Why does this code display buttons taller than they are wide?
import Tkinter, tkFont
top = Tkinter.Tk()
right = Tkinter.Frame(top)
right.pack(side = "right")
font = tkFont.Font(family="Helvetica",...
2
Solved
Although I am a kind of experimented programmer in other languages, I am very new in Python. I have been trying to do a very simple thing that is to quit the mainloop after starting. It seems that ...
2
Solved
I have 2 canvas rectangles, which have a binding for Button-1. Sometimes I want that when one rectangle gets this event, then the other rectangle should also get this event. So I have to duplicate ...
8
Solved
Is there any way to use ttk Treeview with editable rows?
I mean it should work more like a table. For example on double click on the item make the #0 column 'editable'.
If this isn't possibl...
5
Solved
I am using Python 3.x on Windows.
My problem is I want to customize a button widget of ttk by completely changing its background and foreground color. But so far, I have been unsuccessful.
My des...
22
Solved
Today I wanted to start working with Tkinter, but I have some problems.
Python 3.2 (r32:88445, Mar 28 2011, 04:14:07)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" ...
Louth asked 28/3, 2011 at 13:10
6
Solved
I have this piece of code that will create a simple checkbox :
from Tkinter import *
CheckVar = IntVar()
self.checkbutton = Checkbutton(self.root, text = "Test", variable = CheckVar)
However th...
2
Solved
Hi i am trying to put an image as the background on one of my buttons, i have already done this on lots of other buttons in my main window but this particular button sits inside a top level window ...
2
I want to have a copy function in my program, but after it is copied, and the window is closed, my clipboard is wiped of all copied or cut text from my program.
Concepcionconcept asked 4/10, 2022 at 8:35
1
I found a great website that discusses functional testing of a Python GUI application using IronPython, but I want to use Tkinter and am having a hard time making the transition between the librari...
Bucksaw asked 26/11, 2013 at 21:21
6
Versions of Python installed via pyenv fail to import tkinter:
※ python
Python 3.8.1 (default, Feb 29 2020, 11:45:59)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credi...
© 2022 - 2024 — McMap. All rights reserved.