Skip to content
Advertisement

Tag: tkinter

Is it possible to view/print to console the idle queue in tkinter?

In reference to In tkinter GUI what are pending events and idle callbacks? question, which asks what are pending events and idle callbacks in tkinter, I was wondering if there is a way to print the event/idle queue to console or a tracelog. The only potential solution I could come up with is the code below, but I was wondering

Create automatic tick labels for a tkinter scale

I want to create a scale with tick labels that are automatically chosen so they fit on to the scale without interfering with each other. Here is an example code for crating one that resizes with the window: When creating a plot with matplotlib, this happens by default and even gets updated when changing the size of the plot window.

Overlay Image on Tabbed Frame Tkinter

I am developing an app for myself that (in this case) displays a list of items. However, this list of items takes about 10 seconds to pull, so in the meantime, I would like to show the user a loading screen. Currently, my program uses the place method to place, and then remove a gif (animated using a custom image

fixing the toolbar i made with tkinter

i created a simple program with Tkinter but i have a small problem i have a graph and i am using .grid() to place it and webar1.get_tk_widget().grid(column=2, row=3, rowspan=20, sticky=”nesw”) the result is: the first result but then when i am aligning it to the left with column 0 like that bar1.get_tk_widget().grid(column=0, row=3, rowspan=20, sticky=”nesw”) the tool bar is centered

layout buttons within frame nested in tkk.Notebook

I can’t properly layout buttons within frame nested in tkk.Notebook In Main.py I create ttk.Notebook and attach mainTab instance in mainTab.py I’m trying to insert buttonFrame and layout two buttons within it As a result start button is not properly placed in the grid It looks like buttonFrame takes full parent frame width and buttons placed in the middle regardless

How can I modify a label in tkinter?

I have been trying to figure out a way to modify the label to print element 1 to 4 in a line and repeat. I have attached a picture to hopefully clarify what I am trying to accomplish. My goal is to make the results look like the following 1 A 2 B 3 C 4 D 1 a 2

Advertisement