Questions tagged [tkinter]
Tkinter is the standard Python interface to the "tcl/tk" graphical user interface toolkit. In Python 3, the name of the module changed from Tkinter to tkinter.
tkinter
52,502
questions
0
votes
0
answers
9
views
Undo/Redo not working for a Tkinter text widget
I have code for a tkinter text widget using tk and ttkbootstrap:
(part of code)
usertext = tb.Text(frame,width=95,
height=24,borderwidth=textandlineborder,wrap="none",autostyle=False,...
-2
votes
0
answers
18
views
how to make a video timeline with keyframes using tkinter
I want to make a functional video timeline that shows keyframes like a video editor using the Python
library tkinter.
I tried this Python code snipset but it doesn't show key frames; it shows many ...
0
votes
1
answer
21
views
tkinter: what is the difference between transient() and wm_transient()?
Using tkinter in Python. Created a dialog box from tk.Toplevel()
After reading various posts and docs:
self.resizable(width=False, height=False)
self.wm_transient(self._mainwin)
self....
0
votes
0
answers
25
views
Issue with tkinter (pyimage10) [closed]
This call back error. Im trying to call a menu from a separate script using a fuction. It seems like garbage collector is messing with the menu images.
Ive tried moving my images into a dictionary and ...
0
votes
3
answers
64
views
Is there a way to add close and add buttons to tabs in tkinter.ttk.Notebook?
enter image description here
I want to achieve the effect displayed in the picture. Click the plus sign to add a tag, click close to close the tag.
I can do it with two separate features, but I can't ...
0
votes
0
answers
35
views
How to exit command prompt console after sending disconnect command from tkinter?
I'm trying to create tkinter app with commands to control automated script replay on chrome.
Usecase:
.bat launches autoamted replay where I get sessionid and pass it to debugger
...
0
votes
1
answer
29
views
How to Implement Zoom In/Out Functionality in CustomTkinter GUI
I'm trying to add zoom in/out functionality to my customtkinter GUI on a Raspberry Pi. Due to the lack of built-in support for scaling widgets in customtkinter, I'm struggling to achieve this. Has ...
-2
votes
2
answers
50
views
Why using Tk() instead of Toplevel() for my 2nd window in Tkinter doesn't let me update a text variable in a label [closed]
I want to use Tk() for my new window, because I'm going to destroy the main one and let the second one run; however, when I use it, it doesn't let my label's textvariable updates, but with a simple ...
0
votes
1
answer
31
views
Tkinter dynamic label display
I'm working on simple window and like to have clock in it. Found out how to dynamically display time in separate window:
Somehow same code placed into my project displays only label's purple ...
0
votes
1
answer
26
views
TKinter places a strange white box on a displayed image
I am developing a GUI using TKinter that allows users to interactively set parameters that are used for processing some images. The GUI displays the image that is being analyzed so that users can see ...
0
votes
1
answer
29
views
Error loading .jpg images in tkinter window using tk.PhotoImage
Question:
I am working on a tkinter application where I need to display images in the GUI. While loading .png images works perfectly fine, I am encountering difficulties when attempting to load .jpg ...
0
votes
2
answers
35
views
access a component in a tkinter frame class from another frame class
I created a 2 Frames application in tkinter inspired by https://www.geeksforgeeks.org/how-to-change-the-tkinter-label-text/. The purpose is to import a new image by clicking on the start button, and I ...
2
votes
1
answer
46
views
Tkinter canvas object tag_bind causing memory leak
If I monitor the Windows task manager while a program of mine is running, I see a memory usage number that goes up continuously. I wrote the attached code to demonstrate the problem. Once a tag_bind ...
0
votes
1
answer
44
views
tkinter Label and field are very far away
I am having problems joining the label of tkinter to the gui. I am trying to put the asunto label on top left of the asunto textfield, although it was kind of achieved, they are far apart.
Intended ...
1
vote
1
answer
31
views
How to access scanner to scan document and save as a pdf using python
I am trying to build an application that can scan and print documents in windows using tkinter. I am able to print the documents using win32api and win32print
Now I want to scan the documents but ...