israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.98k stars 393 forks source link

ttkbootstrap dosen't like tkinter Label, Button..... #540

Open AlexiJemano opened 9 months ago

AlexiJemano commented 9 months ago

Desktop (please complete the following information):

Traceback (most recent call last): File "PROJECT DIRECTORY", line 8, in import ttkbootstrap as ttk File "PROJECT DIRECTORY", line 132, in Title = ttk.Label(master=root, text="Truth or Dare!", font="Courier 24") ^^^^^^^^^ AttributeError: partially initialized module 'ttkbootstrap' has no attribute 'Label' (most likely due to a circular import)

Describe the bug

My tkinter program works fine but when I try to import ttkbootstrap it breaks. It says that .Label, .Button are not defined in the ttkbootstrap code file

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response

jdsayle commented 3 months ago

Hi @AlexiJemano,

Can you share the imports section from your code? The AttributeError: partially initialized module, you are getting sounds quite similar to this issue from SO: https://stackoverflow.com/questions/59762996/how-to-fix-attributeerror-partially-initialized-module