Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Class to change a customtkinter button's image is not working

To give some context, I am writing the code to a button which starts off as a 'password hidden' image, which looks like a closed eye. Once you press it, it should change the image to a 'password shown'...
Phantom's user avatar
  • 35
0 votes
1 answer
26 views

CustomTkinter with multiple tabs, frames and classes - get widget values

I have a ctk application with many widgets spread across multiple tabs and frames. The inputs are so extensive I would ultimately like the user to be able to save their entries to a named file and ...
Andrew Eaves's user avatar
0 votes
0 answers
23 views

Pillow/Python Defaulting to 72 DPI on a Retina Display - Looks Terrible. How Can I Achieve a Higher DPI?

I'm struggling with an issue when displaying images using Pillow on my Retina display. I have a folder of images that are 150x150 pixels, and when I try to display them with a circular mask, they ...
Chad Ify's user avatar
0 votes
1 answer
42 views

When running a customtkinter script in pycharm 3.12 window does not show up

I was trying to run a simple GUI script I learned (I am a beginner) and no window popped up with the GUI this was the code, import customtkinter customtkinter.set_appearance_mode('dark') ...
Nathan Haug's user avatar
-2 votes
0 answers
45 views

How to create a scrollbar for ctk combobox

import customtkinter as ctk from tkinter import StringVar def show_options(): global option_frame # If the frame is already open, close it if option_frame is not None: ...
Radhesh Khaire's user avatar
0 votes
2 answers
52 views

I can't seem to get a function in one class to properly call a function in another class in tkinter - Python

I am having trouble getting this text box to print text when the button from Class3 is pressed. If I call the same function from Class2 then everything is fine. But from Class 3 not so much. I can ...
Nick Shepherd's user avatar
1 vote
0 answers
69 views

CTkComboBox Dropdown Closes Immediately for Large Lists

I'm using CustomTkinter to create a GUI in Python, and I'm facing an issue with the CTkComboBox widget. When I populate the ComboBox with a large list of items, the dropdown menu shows the options, ...
SNC92's user avatar
  • 11
1 vote
1 answer
20 views

Set image (palplot) into Customtkinter button

How can I set an image (a palplot created with seaborn) into a Customtkinter button (CTkButton)? In the following MWE, I created the button and the image but adding the image with image = image in the ...
AlMa's user avatar
  • 269
-1 votes
0 answers
65 views

PermissionError: [Errno 13] Permission denied error when using tkintervideo in Python

Currently, I am writing a Python application with a Tkinter GUI which requires the ability to play video. For this I use the tkintervideo library, however, when I try to play a video more than once, I ...
Zak Virgo's user avatar
1 vote
0 answers
47 views

How can i draw a route between two points selected from a list in tkintermapview

I've been trying to add an route line to a tkintermapview simple app, but i can't find a code that matches what i need i have a list with around 10 places that i need to calculate the distance in a ...
Ratte's user avatar
  • 11
0 votes
0 answers
251 views

Python: yt-dlp automatically using FFmpeg to merge audio and video files

I am writing a python script that downloads videos from YouTube using the yt-dlp library for downloading and customtkinter for building a user interface. What I want exactly is for the user to click a ...
Héctor Urueña's user avatar
1 vote
0 answers
17 views

how to override alt-escape key of windows in customtkinter toplevel

i am using customtkinter toplevel as a dropdown and want to override Alt-Escape behaviour of window for this top level how to? basically i dont want the window manager to cycle this toplevel like ...
k chakraborty's user avatar
0 votes
0 answers
28 views

How to make multiple CTkButtons in a for loop with different command functions [duplicate]

I want to create multiple CTkButtons with the same function but different parameters in a single loop. This is a code snippet that I have written: #Heres the gui_read function def gui_read(row): ...
Ali Zulfiqar's user avatar
1 vote
1 answer
59 views

Collapse labels if empty

I have three labels that are directly under eachother (see image). I'd like the labels to be collapsed when they're empty. In the case of the image, the second label is empty. I'd like the third label ...
Ulas's user avatar
  • 13
0 votes
0 answers
34 views

Packaging Error when packing an google calendar api project pyinstaller

I'm working on a project and I'm using pyinstaller to package the application into an exe file. I tried to implement the google calendar API into the application but when I try to run the exe file it ...
LegosAndStuff's user avatar
1 vote
0 answers
79 views

CustomTkinter - Vertical scrollable frame next to non-scrollable frame

I have a CustomTkinter app with an horizontal CTkScrollableFrame. Inside this frame, I have two frames: On the left, a CTkFrame, non-scrollable, here in blue, containing a smaller CTkFrame` (or any ...
AlMa's user avatar
  • 269
1 vote
1 answer
84 views

How to open a new PAGE in Tkinter?

I need to open a new page in Tkinter, but not a new tab. I just need the same tab to change into something different, without opening a new tab class App(customtkinter.CTk): def __init__(self): ...
Underscore's user avatar
0 votes
1 answer
64 views

Controlling Customtkinter from a Thread

I want to deactivate and activate CustomTkinter buttons from the thread. But the buttons are deformed (image artifacts appear). Why does this happen and how to solve the problem? I expected smooth ...
alexcr600's user avatar
0 votes
0 answers
62 views

How to create a small image display in the corner while the original image stays unchanged in the middle?

Thanks for taking your time to listen to my problem! So I am working on a project, where I am trying to make an image editing program. So far I have followed a great guide by Clear Code. However, he ...
Nicolai Schler Schler's user avatar
0 votes
0 answers
35 views

Why is my tkinter Frame expanding when expand is set to False

I want to make a frame containing a left and right button and a frame that stores some products that can be clicked on. Yet, when I add the products into the frame with expand=False, it doesn't work. ...
Toby's user avatar
  • 51
0 votes
1 answer
69 views

How to make the background of image transparent in custom tkinter?

I have a button that is an image. I would like to make the background of the image transparent as it is currently showing the png background. Thank you for any help. This is my code and what the ...
Samuel Regan's user avatar
0 votes
1 answer
61 views

Why are the customtkinter widgets interactable, yet not visible?

I'm trying to create a simple UI that enables the user to select a directory (in the context of this project the Download directory) and provides a button that launches the runtime logic. Yet, when I ...
Daniel Wendt's user avatar
0 votes
3 answers
83 views

Can't change the background color of window in `customtkinter`

I am trying to change the background color of a CTk window using customtkinter, but nothing seems to work. Regardless of what color I try to set, the window always shows the system default dark ...
Ayush Dey's user avatar
0 votes
0 answers
41 views

Custom Tkinter checkbox loop

I have an unknown number of checkboxes (it is unknown because it depends on data files that change over time). However, as I saw on the web, you need a different variable for each checkbox to get True ...
Ali Salehi's user avatar
0 votes
0 answers
29 views

Labels not displaying in CustomTkinter GUI

I am writing a Python script using CustomTkinter to display system stats on a little monitor that will be connected to a Raspberry Pi. The code outputs the CPU and RAM usage to the console and updates ...
bpt's user avatar
  • 1
1 vote
0 answers
78 views

Custom Tkinter Wait Variable Does Not Work

Currently, I am developing an application with Python 3 which uses Custom Tkinter in its GUI. In this program, I need to create a wait for a button to be clicked. I am able to do this is regular ...
Zak Virgo's user avatar
0 votes
0 answers
58 views

Python Tkinter FAIL

I am making my first blog ever in Python and I came up to an error that I can't fix while using an animation, I divided every page of my blog with a function and right now I am working in the explore ...
Gustavo 's user avatar
0 votes
2 answers
45 views

How to get asymmetric buttons in Tkinter frame

I have a Tkinter frame with 3 buttons side by side. My goal is to have the left button about 2 or 3 times wider than the others. I tried many different grid configurations but nothing works, they stay ...
longira's user avatar
  • 15
0 votes
0 answers
50 views

How to catch customer error message in tkinter.Tcl().eval()

I need to use Python to create a simple tcl parser, so I use tkinter.Tcl to do this. My python interp is 3.9.15 The parsing works well, but when I want to implement behavior for a parsing failure, I ...
heixxxx's user avatar
0 votes
1 answer
74 views

Why is customtkinter label height not working?

I am trying to limit the height of a Customtkinter label but no matter what I set the height value to it doesn't seem to do anything. I am using the Spotify API to fetch the name of the track which is ...
Cai's user avatar
  • 45
0 votes
0 answers
12 views

How to run pynput.keyboard.listener in a class inherited from customtinker.Ctk?

I have a GUI written in Customtkinter, I want to make it possible to activate a script by pressing F6 in addition to clicking a button in the GUI itself. The way I wrote doesn't work, the console ...
Filimonick's user avatar
0 votes
1 answer
57 views

CTKOptionMenu issue with the method .place

CTKOptionMenu issue I am encountering an issue with the .place() method used on a CTKOptionMenu. As you can see on the screenshot, when I hover on the OptionMenu, the color overfill into the arrow ...
Macdrap's user avatar
1 vote
3 answers
41 views

How to place a label on top of 2 frames

How do I put a label on top of 2 frames? One frame is the background(wallpaper) and the other one is a box. class HomeScreen(CTk): def __init__(self, *args, **kwargs): super().__init__(*...
bag lunacy's user avatar
1 vote
1 answer
100 views

Import "customtkinter" could not be resolved

I am trying to import customtkinter and it's not working at all. I have installed custom tkinter and it even comes up when I do pip list but it keeps saying that customtkinter is not resolved. I've ...
Fat Trat's user avatar
2 votes
1 answer
47 views

Trouble Resizing widgets in Custom Tkinter when going into another page

I was trying to use the set_widget_scale function to resize my widgets based on the resolution of the window, when I resize the widgets on the main page it works fine when the resolution is chosen, ...
Mohammad Ali Naanouh's user avatar
0 votes
0 answers
17 views

Label too big compared to the text inside

When I use a CTkLabel for a text, the label appears to be much larger than the text. How can I reduce the size of the label as close as possible to the size of the text ? Is this a bug ? I searched on ...
Florian's user avatar
0 votes
0 answers
40 views

Table input value not being stored to be retrieved outside of customtkinter table editing interface

I've build a dataframe editor that has an entry box at the top for someone to put their name in. I've tried several different ways to store the input into the "reviewed_by" variable, but it ...
intrepid's user avatar
0 votes
0 answers
50 views

Using .ttf font files in CustomTkinter / Python [duplicate]

I have built a Python user interface using the CustomTkinter library. I am using the 'Inter' font family and it works well on my machine, since I have the fonts installed. However, I am trying to ...
user24736713's user avatar
0 votes
1 answer
36 views

Customtkinter widgets has white background when loaded

could not find solution, so posting my issue. In my application I have set appearance mode to "System" and it loads correct theme but widgets have white background and corners. Loading with ...
Sysas83's user avatar
0 votes
0 answers
26 views

When using the tkinter module, I am trying to make a spinbox for age, but it is changing my 10 to a 1. How do I fix it? [duplicate]

As said in the title, I am trying to restrict certain stuff on my gui based on age. I put: def age_limit(): age = spinbox.get() if age < "10": response.config(text="...
Adriana Mcgonigal's user avatar
0 votes
0 answers
39 views

How can I display a Tkinter input dialog from within an external function?

My project started without thinking of integration with any GUI, but now I'm trying to implement a simple interface for the classes and functions I already have. My problem is that some of the ...
Gustavo Trivelatto's user avatar
-2 votes
1 answer
46 views

SQL paramter must be list, dict or tuple, but the parameter is a list [duplicate]

I am trying to pass a variable called "data" From a class called LoginOrReg in a file called LoginOrReg to another class in another file Called HabitTracker, but i get a programming error ...
Kael Scanes's user avatar
0 votes
1 answer
57 views

How to Implement Zoom In/Out Functionality in CustomTkinter GUI

I'm trying to add zoom in/out functionality to my customtkinter GUI on a Raspberry Pi. Due to the lack of built-in support for scaling widgets in customtkinter, I'm struggling to achieve this. Has ...
deekshitha p's user avatar
0 votes
0 answers
52 views

How do I keep a TKinter window open after playing audio using pydub?

I'm building a basic text to audio app using python.When I play an audio file after taking an input from a user and clicking a button, the window closes after the audio file is played. app = CTk() app....
Chucksterv's user avatar
0 votes
1 answer
56 views

Tkinter label limit number of rows?

I am using wraplength to limit the number of characters on each line for a label. Is there a way I can also limit the number of rows the label can have? I would like it to have a maximum of 2 rows of ...
Cai's user avatar
  • 45
2 votes
2 answers
84 views

Customtkinter grid buttons not centered

I am trying to make a control panel GUI using customtkinter which essentially consits of different pages with different buttons, however when I go to a different page, the buttons aren't centered. As ...
Cai's user avatar
  • 45
0 votes
1 answer
244 views

Setting a custom colour theme in customtkinter

In a project, I am trying to change the colour template of my project from a list of pre-loaded .json themes saved to a folder user_themes. The themes are Anthracite.json, Cobalt.json and Blue.json. A ...
Soumil Ghosh Dastidar's user avatar
1 vote
2 answers
67 views

Python, gui, ctk

so, I am creating a blog, and right now, I am in the settings part, and I have a slide panel with a button that I want it to go to a new window where I will create new widgets and etc..., I have ...
Frosty_YTPT's user avatar
0 votes
1 answer
58 views

Tkinter, CustomTkinter drag widget

I'm doing a file I know I can drop files in to my window thanks to tkinterdnd2 and thanks to this creds: Using drag and drop files or file picker with CustomTkinter class CTkDND(ctk.CTk, TkinterDnD....
Riccardo Zappitelli's user avatar
0 votes
1 answer
40 views

Trying to center and uniformly space a 4x4 grid of entry widgets within a frame, within a frame class. What am I missing?

First up, I'm really pretty bad at OOP and tkinter/customtkinter and this is only my third project I've built with classes over straight functions, so please excuse my mess. I'm getting there, and ...
nannerpuss's user avatar

1
2 3 4 5
14