632 questions
1
vote
0
answers
209
views
Flow Layout with customtkinter adds extra padding between widgets
I am trying to implement a flow layout in a ScrollableFrame from customtkinter. Specifically, instead of managing letters, the layout needs to manage small Frames in which names are written. I have to ...
0
votes
2
answers
130
views
Python Customtkinter: Getting real widget size
I seem to be always getting 120 for both height and width, I don't know why it refuses to give me the real value for the width so I can make the maintain the height in a 16:9 ratio
# Monitor frame
...
Best practices
0
votes
2
replies
90
views
Trying to make it CTk, but STATE not working
I have this script in Tk and it works fine. I wanted to make it dark and add hover options, so I changed it to CTk, but now it's not working. Can someone please help me fix this? I have both scripts ...
1
vote
0
answers
139
views
Animating layout test with python
I'm having a little problem with this code! Basically, I'm testing a feature for a piece of software, and the idea was to animate these windows. So far, it's working fine. When the top window expands, ...
-2
votes
1
answer
99
views
CtkButton doesn't load images correctly
I have coded a python application for help me manage my works. For do this I need some buttons. I chose to use CustomTkinter because of the visual effect but mostly of the times the icons of the ...
0
votes
1
answer
104
views
Multiple screens | python custom Tkinter [closed]
In my Tkinter chatbot app, clicking the 'History' menu opens a new window every time. How can I make it so only one history window exists, and if it's already open, bring it to focus instead of ...
2
votes
1
answer
89
views
How to make CTkTabview occupy the whole window?
I have an issue where my CTkTabview only takes up ~2/3 of the screen vertically.
class App(customtkinter.CTk):
def __init__(self):
super().__init__()
self.grid_columnconfigure(0, ...
0
votes
1
answer
89
views
How to have a frame scroll both directions (horizontal and vertically) in customtkinter
I want a frame that scrolls both ways (horizontally and vertically). However, a normal CTkScrollableFrame only supports either vertical scrolling or horizontal scrolling, and I'm not sure what other ...
1
vote
1
answer
90
views
Tkinter invokes wm command when window destroyed after CTkMessagebox used
My application uses CustomTkinter and reads data on start up:
import customtkinter as ctk
from CTkMessagebox import CTkMessagebox
class App(ctk.CTk):
def __init__(self) -> None:
super()....
0
votes
0
answers
31
views
Relative position of widget is always wrong after the first one
So I have this widget class.
class TitledWidget(ctk.CTkFrame):
def __init__(self, parent, title="", **kwargs):
super().__init__(parent, **kwargs)
self.title = title
...
3
votes
2
answers
333
views
Python Customtkinter code remains running after GUI window is closed
I'm new to coding/Python started a few weeks ago and am learning by creating a basic app with Customtkinter (for the aesthetic) on Pycharm. The app has 2 Customtkinter windows, a login window (class ...
0
votes
0
answers
100
views
Can't figure out customtkinter favicon
This is a simple application I'm making that organizes folder, but that part works fine. I'm make a GUi for it using custom tkinter and cant figure out how to set the favicon, whatever I do just does ...
0
votes
1
answer
65
views
Approaches To Optimize Nested For Loops and Dataframe Creation?
I am not very experienced with coding but I am creating a customtkinter application style script where a user can input a specific type of html that contains diagnostic addresses and various ...
0
votes
0
answers
175
views
How to make a CTkTextbox auto-resize vertically to fit its content in CustomTkinter?
I'm using CustomTkinter to build a quiz interface. Each question is displayed in a CTkTextbox (lbl), and I want the textbox to automatically adjust its height (Y dimension) depending on the content, ...
0
votes
0
answers
71
views
filedialog doesn't return anything on second run
I'm working on a tkinter/customtkinter app to load data to MySQL. Below are the relevant classes. When I run this code to load a single file, I have no issues. The problem comes when I click self....