You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Guys, I'd really appreciate if anyoone can help me out with this, I have an app which I've successfully designed and styled using the traditional ttk themes method. I came across ttkbootstrap which I successfully installed. However, when I applied ttkbootstrap styling to my app and tried to run it, it throws an AttributeError. See below;
Traceback (most recent call last):
File "c:\Users\Samuel Ebuka\Desktop\ukulele_project\ukulele\server\ttktest.py", line 5, in
app = ttk.Window()
^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\window.py", line 279, in init
self._style = Style(themename)
^^^^^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 485, in init
self.theme_use(theme)
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 591, in theme_use
self._theme_objects[themename] = StyleBuilderTTK()
^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1070, in init
self.create_theme()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1135, in create_theme
self.update_ttk_theme_settings()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1141, in update_ttk_theme_settings
self.create_default_style()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1165, in create_default_style
self.create_link_button_style()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 2872, in create_link_button_style
relief=tk.RAISED,
^^^^^^^^^
AttributeError: module 'tkinter' has no attribute 'RAISED'
Hi Guys, I'd really appreciate if anyoone can help me out with this, I have an app which I've successfully designed and styled using the traditional ttk themes method. I came across ttkbootstrap which I successfully installed. However, when I applied ttkbootstrap styling to my app and tried to run it, it throws an AttributeError. See below;
Traceback (most recent call last): File "c:\Users\Samuel Ebuka\Desktop\ukulele_project\ukulele\server\ttktest.py", line 5, in app = ttk.Window() ^^^^^^^^^^^^ File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\window.py", line 279, in init self._style = Style(themename) ^^^^^^^^^^^^^^^^ File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 485, in init self.theme_use(theme) File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 591, in theme_use self._theme_objects[themename] = StyleBuilderTTK() ^^^^^^^^^^^^^^^^^ File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1070, in init self.create_theme() File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1135, in create_theme self.update_ttk_theme_settings() File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1141, in update_ttk_theme_settings self.create_default_style() File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1165, in create_default_style self.create_link_button_style() File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 2872, in create_link_button_style relief=tk.RAISED, ^^^^^^^^^ AttributeError: module 'tkinter' has no attribute 'RAISED'
How do I resolve this?
@Dev-Clair
Is it possible to retry with the latest ttkbootstrap version and check if the issue still persists?
In case the issue still persists,
Please provide working minimum reproducible demo/sample script.
And any necessary steps/instructions to reproduce the issue.
This will be helpful for anyone who will be interested in investigating the issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi Guys, I'd really appreciate if anyoone can help me out with this, I have an app which I've successfully designed and styled using the traditional ttk themes method. I came across ttkbootstrap which I successfully installed. However, when I applied ttkbootstrap styling to my app and tried to run it, it throws an AttributeError. See below;
Traceback (most recent call last):
File "c:\Users\Samuel Ebuka\Desktop\ukulele_project\ukulele\server\ttktest.py", line 5, in
app = ttk.Window()
^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\window.py", line 279, in init
self._style = Style(themename)
^^^^^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 485, in init
self.theme_use(theme)
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 591, in theme_use
self._theme_objects[themename] = StyleBuilderTTK()
^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1070, in init
self.create_theme()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1135, in create_theme
self.update_ttk_theme_settings()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1141, in update_ttk_theme_settings
self.create_default_style()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 1165, in create_default_style
self.create_link_button_style()
File "C:\Users\Samuel Ebuka\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\style.py", line 2872, in create_link_button_style
relief=tk.RAISED,
^^^^^^^^^
AttributeError: module 'tkinter' has no attribute 'RAISED'
How do I resolve this?
All reactions