Questions tagged [customtkinter]

For questions about the Python library customtkinter which wraps the built-in Tkinter

customtkinter is a library for creating GUI programs which is based on the built-in Tkinter.

It was created by Tom Schimansky and is also available on GitHub.

372 questions
6
votes
1 answer

pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match

def video_downloader(video_url_list: List[str], download_folder: str) -> None: """ Download videos from a list of YouTube video URLs. Args: video_urls (List[str]): The list of YouTube video URLs to download. …
AlexOAD
  • 63
  • 4
4
votes
1 answer

_tkinter.TclError: can't delete Tcl command - customtkinter - custom prompt

What do I need I am trying to implement a custom Yes / No prompt box with help of tkinter. However I don't want to use the default messagebox, because I require the following two functionalites: a default value a countdown after which the widget…
N. Maks
  • 539
  • 3
  • 15
3
votes
1 answer

Python customtkinter AttributeError: 'int' object has no attribute '_root'

i just took over a project in python after a year and i wanted to rebuild it with customtkinter using the documentation. Here is the code: import customtkinter import tkinter from pytube import YouTube from PIL import…
GP_Gamer98
  • 33
  • 4
3
votes
2 answers

customtkinter - How to edit CTkEntry border?

So I'm using the customtkinter to create an interface. I have an entry and I want it to have a background, but I cant't do it. In the documentation, there isn't an argument for the border. Specifically, I want to change the width and the color. Does…
leech
  • 367
  • 1
  • 4
  • 16
2
votes
1 answer

How to put iconbitmap on a CustomTkinter TopLevel?

This is the code example: class ToplevelWindow(customtkinter.CTkToplevel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.geometry("400x300") self.title("New Window") …
2
votes
2 answers

Tkinter, update widgets real time if list is modified

Let say I've a list of widgets that are generated by tkinter uisng a loop (it's customtkinter in this case but since tkinter is more well known so I think it'd be better to make an example with it), each widgets lie in the same frame with different…
V21
  • 57
  • 6
2
votes
1 answer

check if Toplevel windows was closed?

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…
Another_coder
  • 728
  • 1
  • 9
  • 23
2
votes
1 answer

How to add progress bar on customtkinter?

import customtkinter as CTK class App(CTK.CTk): def __init__(self): super().__init__() self.bar = CTK.CTkProgressBar(master=self.checkbox, orientation='horizontal', mode='determinate') self.bar.grid(row=10, column=0, pady=10,…
2
votes
0 answers

Customtkinter/Tkinter canvas objects jumping around

I am fairly new to tkinter and I've been working on this feature of my project that allows a user to drag and drop canvas objects around, however when I move around the canvas and try to move the canvas object again, it behaves weirdly. It's…
Cyberin
  • 33
  • 4
2
votes
1 answer

Python - text color of one variable in multivariable sentence in Tkinter label

The text source consists out of elements from a nested lists. A label is created for each element in the list. Below the code: list1 = [["test", 3, 2, 0], ["test2", 4, 1, 1],["test3", 0, 5, 2]] row = 1 for i in list1: text = "name: {}, x: {}, y:…
Zercon
  • 105
  • 9
2
votes
0 answers

Python TKinter - breaking buttons, labels, comboboxes into separate files

I have a fairly sizeable tkinter project and I am trying to break apart my buttons, labels, comboboxes etc. into separate .py files. Is it possible to do this using classes? For example, I have a main.py and I want to create a labels.py…
2
votes
2 answers

TypeError in customtkinker module

I'm testing customtkinter module, and I have a problem. I've made test gui and some code, which should execute when button is clicked. Unfortunately when I click button I have error: C:\Users\Jacek\Desktop>python test.py Exception in Tkinter…
olenka
  • 43
  • 3
2
votes
1 answer

TKinter ComboBox Variable Issue

I am trying to use tkinter, more specifically customtkinter, to create a combobox and have a variable in the first combobox determine what another combobox's options are. I think the syntax maybe a little different since it is customtkinter rather…
2
votes
1 answer

Custom tkinter label background

I am making a school project, and right now I'm having a problem with the label's backgrounds. the objective is to make the label's background the same as the frame in both dark and light themes, and if possible, remove the little different color…
Lucifer_uwu
  • 72
  • 1
  • 9
2
votes
3 answers

Problem in making an exe file using Pyinstaller (file made using tkinter and Custom tkinter)

I am trying to make a small application for data entry using tkinter and custom tkinter. The code runs fine in python and I made the exe file of it using pyinstaller --onefile --noconsole try45.py But on running the exe file it gives error labelled…
1
2 3
24 25