Tooling and libraries for theming TKinter applications. Use this tag for questions about programming with ttkbootstrap.
Questions tagged [ttkbootstrap]
33 questions
2
votes
4 answers
ttkbootstrap not working with pyinstaller
With Python Interpreter it works fine, image loads and main.py runs without problems, but when I make it into one file .exe with Pyinstaller, .exe crashes with the following error message.
FileNotFoundError: 'themes.json' resource not found in…

Sumon Kumar
- 43
- 4
1
vote
1 answer
Tkinter Canvas wont change its color and scrollbar wont connect to Canvas
I have a class with my Main Window (App) inherited from ttkbootstrap.Window and a Canvas class inherited from ttkbootstrap.Canvas.
Im creating an Object of the Canvas class in my MainWindow class (App) and when I add a Scrollbar in my App and…

sNakeSheesh
- 29
- 4
1
vote
0 answers
background color changes of customtkinter button when it get pressed and also text color changes
In my ctk (customtkinter) project, color of button changes when it gets pressed also text's color changes from white to black. When the button is pressed it calls gen_table which creates a ttkbootstrap table on ttkbootstrap window. Below are two…

kush_1244
- 39
- 3
1
vote
1 answer
Why are there 2 windows on my app? I'm using ttkbootstrap
I'm creating a small app that just gets jokes from an API using ttkbootstrap. The problem is there are 2 windows showing when I run the app. Anyone know what I'm doing wrong?
Here's the code:
import requests
import ttkbootstrap as tb
from…

Vicente Antonio G. Reyes
- 636
- 9
- 24
1
vote
0 answers
How do I add drop and drag functionality to different tkinter windows?
I recently ran into this problem, and when I went searching for this question I didn't get any results back. I eventually found the answer to this question and learn enough to answer it myself.
I am building a modern tkinter GUI application with a…

Tristan
- 19
- 4
1
vote
1 answer
Object-oriented approach on switching frames in tkinter using a sidebar
I was developing a simple clock app which includes the features of: clock, timer, stopwatch and potentially world clock with live conversions - just a project to get me back into programming. To challenge myself, I wanted to make it under an object…
1
vote
0 answers
Pyinstaller not working well with ttkbootstrap library
I have a simple GUI which I designed with tkinter & ttkbootstrap.
Everything works fine when I run the script with my IDE.
Also, The main.exe file is created successfully with Pyinstaller by using this command: pyinstaller.exe --onefile…

Benny
- 488
- 5
- 18
0
votes
0 answers
Preventing Bleak bluetooth disconnect from asyncio timeout in Python?
I have a small Python application that uses a ttkbootstrap GUI and connects to a BLE service via Bleak. Since the ttkbootstrap GUI runs in an endless loop, I have separated the operation into it's own thread. I am attempting to disconnect the…

CoopDaddio
- 577
- 1
- 5
- 20
0
votes
0 answers
why does ttkbootstrap Tableview widget automatically get wider on rebuild and ignore autofit_columns()?
I love the ttkbootstrap project, but I've been pulling my hair out trying to figure out why this is happening:
I create a table and display it in a window, I choose autofit=True so it fits nicely
The data changes, and I need to update the window. I…

wdsky
- 3
- 3
0
votes
3 answers
Python tkinter/ ttkboostrap dateentry doesn't work when in readonly state
I am working currently with the ttkbootstrap librairy instead of the ttk librairy in the past. I used to use the ttk DateEntry widget in the "readonly" state which worked perfectly fine. However, for some reasons i need to stop using the ttk…

d'Elbreil Clément
- 62
- 5
0
votes
1 answer
In tkinter, is it not possible to nest a Frame within a LabelFrame?
The following is my code. After I run it, I find that my button and entry are not displayed. I don't know what went wrong.
import tkinter as tk
import ttkbootstrap as ttk
root = tk.Tk()
root.title("test")
root.geometry("1200x740")
target_group =…

w01f
- 1
0
votes
0 answers
_tkinter.TclError: can't invoke "tk" command: application has been destroyed AND TypeError: cannot unpack non-iterable NoneType object
I wrote this code and if i uncomment the first two comments i get the first error and if i uncomment the second two comments i get the second error but if i only open the window2 with everything uncommenented it works just fine. Though the first and…

Siri
- 1
- 2
0
votes
1 answer
changing ttkboostrap button style
Could someone please help, i cannot set the style of a button after the button has already been created.
i asked the all knowing god of code, and chatgpt said that it is impossible, but i was hoping there might be another way to do it.
i tried…
0
votes
0 answers
customtkinter collision with ttkbootstrap
Today I run into an error using ctk and ttk, and I have no idea how can i fix that.
import customtkinter as ctk
# import ttkbootstrap as ttk
window = ctk.CTk()
button = ctk.CTkButton(window, text = "now it's…

vivats
- 1
0
votes
1 answer
Ttkbootstrap meter widget doc example not working
I tried an example of the meter widget of ttkbootstrap and it doesn't seem to work. I copy and pasted the exact code and got this error 'AttributeError: module 'PIL.Image' has no attribute 'CUBIC'. Did you mean: 'BICUBIC'?'
This is the code
import…

Mirko Ruhl
- 1
- 1