641 questions
Best practices
0
votes
0
replies
33
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 ad 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 ...
-2
votes
1
answer
73
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 ...
2
votes
1
answer
56
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, ...
1
vote
1
answer
57
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()....
3
votes
2
answers
226
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
1
answer
60
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
61
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....
0
votes
1
answer
144
views
How to add a separator for CTK Text Box?
I would like to add a separator line in between the entries of my text box but have not yet found a neat way of doing this.
I would also gladly appreciate any further comments on my code any ways to ...
0
votes
0
answers
58
views
Delay for displaying path in entry field after using filedialog from tkinter
I am working on my (in my eyes) first larger project. Until this moment I was writing only scripts up to 500 lines and I am creating an app for my team which is going to do some quality control so I ...
0
votes
1
answer
73
views
Window not being centered on the screen
I am having a problem in positioning the login window in center of my screen.
This is my code:
from customtkinter import *
from PIL import Image
from tkinter import messagebox
from views.registration ...
0
votes
0
answers
88
views
Python Borderless ttk.Treeview
I have a treeview that I don't want to have borders, I managed to do it with borderwidth=0, however when selecting an element the border reappears, I tried to put borderwidth=0 when selecting or ...
0
votes
1
answer
85
views
Creating a Custom class of Label and passing arguments from the main window with Custom TKinter and Python
I'm quite new to GUI and OOP, I really tried to figure out but I'm not able to find the solution.
I started a GUI project which started to be very messy very quickly. So I started to recreate from ...
0
votes
0
answers
186
views
CustomTkinter + pywebview
I was wondering if there is a way how to implement the rendered "webview" into customTkinter frame?
import customtkinter
import webview
from customtkinter import CTk, CTkFrame
def ...
1
vote
0
answers
30
views
CTkScrollableFrame incompatible with pywinstyles.set_opacity
When using pywinstyles.set_opacity on a button that was created in CustomTkinter, it causes the background to be "transparent", just like it is supposed to be.
However this only works when I ...
-1
votes
2
answers
207
views
Using Python with CustomTkinter and having problems for labels
I'm trying to change the background of the label that its says "Welcome Back to Our Website!", its only shows me the background of the original windows. I saw before that, that specific ...
0
votes
0
answers
43
views
Insert HTMLLabel into CTKTextbox
Is it possible to include an html mailto link in a customtkinter textbox?
Whilst the below example provides the required text and the link to open the default email client separately, I would like to ...
1
vote
2
answers
211
views
Aligning frames in tkinter python, (customtkinter)
I'm making an app in python, with the customtkinter library. I'm using the grid() widget manager. So far, I only have a few frames as the basic layout, but can't align them properly.
The issue is, ...
0
votes
0
answers
99
views
The background image for my custom tkinter program will not appear
I am trying to put a background to my custom tkinter program. It has a main class that all my frames are add to. This same class has functions to make them appear. The problem is, is that instead of ...
1
vote
1
answer
53
views
Issue with Toggling Sign of the Last Entered Number in Calculator Using ⁺∕₋ in Python
I am developing a calculator using Python. The problem I'm facing is that when I try to toggle the sign of the last number entered by the user using the ⁺∕₋ button, all similar numbers in the text get ...
0
votes
0
answers
80
views
CustomTkinter App Keeps the First Instance and Takes PC Memory
````
from pathlib import Path
from tkinter import Tk, Canvas, Entry, Button, PhotoImage
import time
import subprocess
import traceback
import sys
import logging
import os
import sys
def resource_path(...
0
votes
1
answer
80
views
Python Tkinter Image problems
Every time I'm getting this error:
_tkinter.TclError: image "pyimage2" doesn't exist
When I want to execute this code:
self.frame1 = customtkinter.CTkFrame(self)
self.frame1.pack(fill="...
1
vote
1
answer
127
views
Pillow/Python defaulting to 72 DPI on a Retina display - looks terrible. How can I achieve a higher DPI?
I have 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 appear pixelated ...
0
votes
2
answers
80
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 ...
1
vote
1
answer
54
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 ...
1
vote
0
answers
2k
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 ...