I’ve been using the animation method outlined at Managing dynamic plotting in matplotlib Animation module to create animations and place them on a tkinter FigureCanvas. I’m having difficulties animating a sequence of barplots in such a way that the y-axis tickmark labels appear as I want them to. My animation will have 100 frames, each consisting of a barplot using
Tag: tkinter
How to align a frame to the left in tkinter?
So I created this GUI in Tkinter. The X, Y and Z labels and entries are in a frame, and I need that frame to be justified to the left (I want it to be next to the “Nombre” entry). I tried the sticky = “w” option in the frame but that didn’t seem to work. Thank you for the
How do I fill empty space using grid system in tkinter?
I have 5 buttons with 3 of them in the first row and 2 in the second row. How do I fill the white space that is left? I tried the following: Thanks in advance. Answer There are multiple ways to do this. One of the easier ones is to play around with the Grid Layout. Try this:
PySimpleGui – How can I update GUI with a question but not check for the answer during the first iteration
I am making a quiz program in PySimpleGui. I want it so that the first question appears automatically without pressing a button. Is there a way to do this without adding the question in the layout? With the code below the question only appears after the submit button is pressed. I would prefer it not to be in the layout
Record Video Button in tkinter GUI python
I’m pretty new to python and espcially tkinter and opencv. I’ve got someway (a little way) to creating a gui that will eventually control a microscope and ai. But I’ve hit a stumbling block, trying to record the video that is displayed within the gui, I think its to do with the video feed already been captured in the display,
Tk Filedialog giving back a tuple
I am trying to take a file and put it into all directories 1 level down. I thought that this would be simple, what am I doing wrong? Answer Since it is “askopenfilenames”, it returns the results in the form of a tuple. You can iterate over it and move the files to the directory selected:
Python – invalid syntax in conditions
I am studying how to use conditions in Python and I have no idea why on earth there’s a syntax error in my code, when I have just written normal condition: else y>200: Here is my code: Answer The should be You can look into the documentation for if statements: if Statements
python: tkinter/urllib/requests – GUI not responding when running download command
I tried making a GUI where there is a download button and it downloads a file from the internet. There is also a progressbar which shows progress of the download.. the whole code: but when i click on the download button, the whole window stops responding.. and after some time, when the download is finished, it responds.. and the progressbar
Label’s size changing after inserting an image
I am trying to reconstruct a picture that is divided into 6 parts, by adding the parts neatly to the 6 labels ordered vertically. The pictures have the exact size with labels but still after adding them either labels are getting smaller or either images aren’t getting the size they are meant to have therefore the picture parts aren’t uniting.
Replacing a window with a new one- Python tkinter
I’m creating a quiz game in Pythonn tkinter. I’m using my original window, called window in the beginning of the program. Then, if the user clicks on the START button, window gets replaced with window2 and the buttons that get created in the App class are displayed on window2. When I do that, it throws the following error: My code: