52,695 questions
Advice
0
votes
2
replies
48
views
How to get user choice from tkinter file open dialog
Simillar to This question, but slightly different.
I want to distinguish between two (or more) file types that share the suffix but internally are different.
So far I have something like this:
## ...
2
votes
1
answer
64
views
Bind buttons iteratively in tkinter? [duplicate]
I'm currently trying to create buttons in Tkinter dynamically, each button should have a copy_url() function assigned to it, and when clicked, the button should copy the url of the image that's ...
-4
votes
0
answers
100
views
Image doesn't exist, but it does [closed]
I'm working on a personal project that I'm going to use to spoof Discord emotes, and for the frontend I'm using Tkinter. I have the following lines of code that I'm using to cache emotes into a folder,...
-2
votes
0
answers
67
views
Can I do this in Tkinter? Change text-format of numbers in cells excel-like? [closed]
I load a website scrape TXT data into a scrollable Tkinter listbox
Press a button to perform Data Analysis: which
highlights ONLY specific numbers in that same listbox!
Max data size: 201 such rows
...
4
votes
1
answer
65
views
Why py_mcws.WsClient don't run with my asyncio event_loop?
I want to create a window program that connects a Minecraft world to a local websocket. It works fine in the Thonny IDE and I can run everything smoothly, but when I try to start it via Bash, it ...
1
vote
1
answer
79
views
Tkinter frame changes with buttons
I am a beginner with Tkinter, and I can't figure out how to change frames in my RPG game. In the code I sent, I am trying to close the welcome_frame and open it. By the way, I couldn't find how to ...
1
vote
1
answer
55
views
Restrict frame resizing in Tkinter so it can still be minimized, but maximazed only to a certain width
I am trying to build a simple app in python with tkinter. It contains two rows for file selection (column of labels on frame1, labelFrame, and column of entry and button pairs on a second frame, ...
0
votes
0
answers
41
views
Response of selected values in ttk Treeview lags [duplicate]
I was trying to make an app that shows the values of a table once one of the elements in treeview are selected using the following code:
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
...
0
votes
1
answer
100
views
Why do Tkinter apps running under uv have strange fonts?
I have a simple Tkinter app:
import tkinter as tk
from tkinter import ttk
def main() -> None:
root = tk.Tk()
root.title('Hello world')
label = ttk.Label(root, text='Hola Mundo')
...
Advice
1
vote
2
replies
34
views
I'm having trouble trying to figure out how to make a menu appear where it's parent element is located using Tkinter
Can any one help me figure out how to make a menu widget appear where a button is located.
I am working on an application that downloads videos from the internet using yt-dlp (I'm not encouraging ...
3
votes
1
answer
117
views
Tkinter - Column grouping in Treeview
I have a table built from multiple Label widgets and laid out with the grid() method. I can group several columns in the header using rowspan and columnspan to organize the information in a certain ...
0
votes
1
answer
142
views
How to show the actual viewport of the camera feed without cropping?
I am trying to build a python program that shows camera feed. I tried it in 2 ways (TKinter and QtDesigner), both ways show cropped viewport compared to the native camera application viewport on ...
0
votes
1
answer
122
views
"ModuleNotFoundError: No module named 'pandas' " but is present in the python package list and in software manager
I've recently switched from Windows 10 to Linux Mint, but after pulling some of my old git projects I'm having issues getting the modules to work correctly. My initial import list looks like this:
...
1
vote
2
answers
185
views
Tkinter does not display Frames correctly after grid_remove() under macOS
I have the following problem. I created a desktop application to generate invoices for my dad's company. The machine I wrote this application for is an iMac from 2011 running macOS High Sierra (10.13....
0
votes
1
answer
147
views
Why should I set the parent of a widget to the canvas when placing it as window item?
Why does the "tk-toolkit" treat the window item differently when the parent is not canvas?
When distributing events for example:
import tkinter as tk
def enter_event(event):
print(f'...