Questions tagged [tkinter-layout]
378 questions
0
votes
1 answer
Dynamically updating grid with grid_remove() in tkinter
My goal is to create a Tkinter GUI with a Scale that-when updated-will change the number of scales underneath the original scale. Currently my slider will work with only the highest 2 values in its range, and I cannot figure out why.
I have tried to…

Luke-McDevitt
- 77
- 6
0
votes
0 answers
How to center a frame on a canvas?
type here
I have been working on a quiz system for my class 12 school project using customtkinter for GUI.
on creating a scrollable frame on canvas the frame is sticking to the bottom right side and not centering
enter image description here
sample…

Om Mudgal
- 1
- 1
0
votes
1 answer
Python 3.8 tkinter stacked LabelFrame are not the same width
I am trying to build an MVC app; but am unable to get the individual stacked LabelFrame to be the same width.
The Middle Label/Entry is the same width as the Bottom Label/Combobox; however, the Top Label/Entry is not - it is in a separate class.
The…

Ian
- 53
- 6
0
votes
1 answer
Tkinter: my floating frame in python is flickering while i'm moving it with mouse
Good Morning,
I'm a newbie python, and I would like to make a floating frame with tkinter, but I can't get it because when I drag it starts flickering.
any suggest:
here the code
`
from tkinter import *
class MyFrame(Frame):
def…
0
votes
1 answer
When I scroll the table gets stick to the position and only the text gets scrolled. I want it to scroll with the text
When I scroll the table gets stick to the position and only the text gets scrolled. It should scroll with the text.
The table was created with entry widget. The code does not throw any error but the scrolling is not working properly.
from tkinter…

Prashant Priyadarshi
- 27
- 5
0
votes
0 answers
how to make tkinter window not moveable with the mouse
very simple problem, I just try to make tkinter window that you are not able to move with the mouse. the problem is that I don't find a function that can do it, the only thing that I found is making it not resizable and stuff like that, I also found…

TheGreenLightning444
- 46
- 4
0
votes
0 answers
Multiple treeviews with individual scrollbars in tkinter?
I am new to tkinter and I am trying to implement multiple treeviews in a frame with the scrollbar for each but I am getting single row in a treeview in each. Is there anyway to fix this issue in tkinter? Anyhelp will be…

Augury
- 1
0
votes
2 answers
is it possible to override the size of a frame when something is inside?
I am trying to have two identically sized frames inside a grid, like this:
enter image description here
i have control over the frame's size when nothing is in it but when i add something into the frame, i lose control over the size itself and it…

Naj Litarvan
- 5
- 2
0
votes
3 answers
Why does my canvas.create_text not display any text when I run it?
I am learning how to create and use GUI and i have been at this for the last 24 hours. I am sure its just a small problem but i have no one to ask around.
This is the code.I expected that when i run the code it will display the title and word on my…

josephine omondi
- 1
- 1
0
votes
2 answers
How to display the output form a function on a label in Tkinter
I'm new to coding and im sure that my code is not very efficient but I just want to take the output from a variable and display it in a window. So far when you run it, it just displays the output in the console. I want it do to that and display it…

MAKatcher
- 3
- 3
0
votes
1 answer
Tkinter: Placing widgets on top of other Widgets
I'm trying to place an Entry widget on top of a frame but i'm having some trouble with it
(I'm using customtk but i suppose there's no big difference)
import customtkinter
app = customtkinter.CTk()
app.geometry(500x380)
random_frame =…

AGoat
- 1
0
votes
0 answers
Poor performance using a scrollable canvas with widgets in Tkinter
I would like to create a n by m table of buttons, in which a portion of those buttons will be displayed inside of a scrollable area. My first approach was to simply set the width and height of a frame embedded within a canvas and let the grid layout…

Dak
- 19
- 5
0
votes
0 answers
Creating a circular layout in tkinter
I am using code below to create a 10x10 array of square buttons. Assuming each square has side = 10, how can I disable the squares (buttons) that do not fit completely inside a circle of diameter 100? I want all the buttons inside the circle to…

rverma
- 127
- 2
- 8
0
votes
1 answer
What else besides grid and weights are needed to make widgets proportionally sized?
A Frame that has 2 rows and 1 column can be weighted. From my understanding, this will set the growth from some arbitrary position to be proportional. So something like:
self.grid_columnconfigure(0, weight=1)
self.grid_rowconfigure(0,…

Dak
- 19
- 5
0
votes
2 answers
Disable mouse press on Tkinter Text Widget
Background
I have created a tk.Text widget within a frame and used grid to place successfully within my tool. I use methods to run read commands and display the results within the tk.Text widget. I only want the tk.Text to display the results…

Scr3wball88
- 3
- 2