customtkinter

How do i make a customtkinter button run a function without freezing

How do i make a customtkinter button run a function without freezing Question: right now am trying to make a customtkinter GUI for my code the problem that am running in which I cannot really find an answer to it is as follows, I am trying to make a button run a specific bit of …

Total answers: 1

How to put iconbitmap on a CustomTkinter TopLevel?

How to put iconbitmap on a CustomTkinter TopLevel? Question: This is the code example: class ToplevelWindow(customtkinter.CTkToplevel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.geometry("400×300") self.title("New Window") self.resizable(False, False) self.iconbitmap(‘icon.ico’) self.after(100, self.lift) class App(customtkinter.CTk): def __init__(self): super().__init__() self.geometry("550×150") self.title("Title") self.resizable(False, False) logo_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_images") self.logo = customtkinter.CTkImage( Image.open(os.path.join(logo_path, "MCB.png")), size=(90, 54)) self.labelimage = customtkinter.CTkLabel(master=self, text=None, image=self.logo) …

Total answers: 1

Customtkinter checkboxes are not starting at the same x axis

Customtkinter checkboxes are not starting at the same x axis Question: I want to make a python todo app with customtkinter. When i create a checkbox which has a longer text everytime something goes wrong and for something they just go away. Here is my code so far: from customtkinter import * from tkinter import …

Total answers: 2

Customtkinter button text wrapping (doesn't support wraplength attribute)

Customtkinter button text wrapping (doesn't support wraplength attribute) Question: I’m using the customtkinter library to create a rounded button with an outline, this button can contain a variable length of text and the button itself should dynamically resize. There is no wraplength attribute for customtkinter so I can’t just do something like self.configure(wraplength = self.winfo_width()) …

Total answers: 1

Python Tkinter – I can't replicate terminal output in Tkinters Label (GUI)

Python Tkinter – I can't replicate terminal output in Tkinters Label (GUI) Question: Within my class ‘App’, I wish to take the user input in the Tkinter EntryBox, and use it to get the definition using pythons PyDictionary module. Once done, I wish to display the output in a Tkinter Label. The specific output which …

Total answers: 1

Using drag and drop files or file picker with CustomTkinter

Using drag and drop files or file picker with CustomTkinter Question: I have recently decided to start learning Python and while doing several small projects as a hands-on approach, i discovered the customtkinter library (https://github.com/TomSchimansky/CustomTkinter) for more modern looking GUI development with Python. I wanted to do something which either requires a drag-and-drop component for …

Total answers: 1

check if Toplevel windows was closed?

check if Toplevel windows was closed? Question: I have a tkinter app, created with customtkinter: import customtkinter class App(customtkinter.CTk): def __init__(self): super().__init__() Extra() self.mainloop() class Extra(customtkinter.CTkToplevel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.geometry("400×300") self.label = customtkinter.CTkLabel(self, text="ToplevelWindow") self.label.pack(padx=20, pady=20) App() I am trying to figure out code that checks if the Extra window has been …

Total answers: 1

Cant switch windows in tkinter

Cant switch windows in tkinter Question: Every time I click on the buttons I get a error. Could anyone help me by providing a fix or telling me what the issue was because I cant see the issue. Whenever the button is clicked it is supposed to open a new page and the side bar …

Total answers: 1