question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_tkinter.TclError: unknown option "-bootstyle"

See original GitHub issue

python 3.8 ttkbootstrap 0.5.1

\ttkbootstrap\tests\

 python test_button.py

Traceback (most recent call last):
  File "test_button.py", line 52, in <module>
    button_style_frame('', style, 'Solid Button').pack(side=tk.LEFT)
  File "test_button.py", line 21, in button_style_frame
    btn = ttk.Button(
  File "E:\anaconda3\envs\python38\lib\tkinter\ttk.py", line 607, in __init__
    Widget.__init__(self, master, "ttk::button", kw)
  File "E:\anaconda3\envs\python38\lib\tkinter\ttk.py", line 552, in __init__
    tkinter.Widget.__init__(self, master, widgetname, kw=kw)
  File "E:\anaconda3\envs\python38\lib\tkinter\__init__.py", line 2572, in __init__
    self.tk.call(
_tkinter.TclError: unknown option "-bootstyle"

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
israel-dryercommented, Nov 12, 2021

another thing… the imports are different because I’m overriding the widgets. I’ve tried to simplify it.

import tkinter as tk
import ttkbootstrap as ttk

root = tk.Tk()
style =ttk.Style("superhero")

btn = ttk.Button(root, text="Push Me")
btn.pack()

root.mainloop()
1reaction
Gaoyongxian666commented, Nov 12, 2021

Support author, thank you for development

Read more comments on GitHub >

github_iconTop Results From Across the Web

tk.call( _tkinter.TclError: unknown option "-bg" - Stack Overflow
I want to set a theme to my tkinter window as well as config my tkinter window buttons, labels with options like bg....
Read more >
Python tkinter error _tkinter.tclerror: unknown option "-text"
Solution 1. I have found the reason why. Because in customtkinter 0.3, we can directly add Text in CTkLabel(Text="") like this.
Read more >
Tclerror unknown option "-bg" : r/learnpython - Reddit
My code keeps getting this error: Traceback (most recent call last): File "D:\Elementtableproject\Projectelement\V3\ osa3.py ", line 267, ...
Read more >
tkinter.TclError: unknown option "-style" when using ttkbootstrap
Unable to use pandastable with certain themed tkinter window. Seems to work fine with ThemedTk but throws an exception when using ttkbootstrap.
Read more >
Setting border_width specifcation on CTkOptmenu errors ...
Setting border_width specifcation on CTkOptmenu errors (_tkinter.TclError: unknown option "-border_width") #499.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found