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
Tag: tkinter
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.
How to make zoom in PDF viewer with Python tkinter and tkPDFViewer?
I have made a very simple PDF viewer for all PDF files contained in the folder where the executable is placed. Then, I am interested in adding some basic utilities to a buttons panel, such as with zoom + and zoom – button to increase the view of PDF file and allowing to improve the reading of the selected PDF
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
(Python) tkinter figures (with colorbar) overlap when using slider
The following codes is to plot contours from five (slider: 0 ~ 4) .xlsx files on tkinter. Each file just contains numerical data in the matrix 12X6 such as When running it, I got Now, if I use fig.clf, for example I got The contour disappeared. I also tried from matplotlib.figure import Figure instead of pyplot; however, it does not
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
Python MWC pattern GUI – Menubar command from controller class
I’m trying to build a tool for data analysis. I expect that this kind of application gets big, so I’m following the MVC pattern to organize it as best as possible. My results are saved in .csv files, so the goal should be to “import” them into the GUI. I want to open these files using “CTRL + O” as
How do I save the previous input in the text document in tkinter python
I am new to GUI programming and I’m trying to create a graph that takes in user input simultaneously while plotting the points given. I am still at the start, I am taking double entries and turning them into a list of tuples, and saving the entries in a text document. I have worked this all out but as I