Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use ttkthemes because there's missing scid.tcl #83

Closed
monicacue opened this issue Jun 1, 2021 · 5 comments
Closed

Cannot use ttkthemes because there's missing scid.tcl #83

monicacue opened this issue Jun 1, 2021 · 5 comments

Comments

@monicacue
Copy link

monicacue commented Jun 1, 2021

I've tried to use tkkthemes by writing those commands on my app: I'm running Python 3.9 over Windows 10.

import tkinter
from tkinter import *
from tkinter.font import BOLD, Font
from tkinter import ttk
from ttkthemes import themed_tk as tk

app = tk.ThemedTk(theme="breeze")

#Whatever code

app.mainloop()

However the terminal sends me the following error, and the app just don't run:

File "C:\Users\user\Documents\Code\Window.py", line 8, in <module>
    app = tk.ThemedTk(theme="breeze")
  File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ttkthemes\themed_tk.py", line 68, in __init__
    ThemedWidget.__init__(self, self.tk, gif_override)
  File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ttkthemes\_widget.py", line 63, in __init__
    self._load_themes()
  File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ttkthemes\_widget.py", line 73, in _load_themes
    self.tk.call("package", "require", "ttk::theme::scid")
_tkinter.TclError: couldn't read file "C:/Users/user/AppData/Local/PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0/LocalCache/local-packages/Python39/site-packages/ttkthemes/png/scid/scid.tcl": no such file or directory

No matter the content of my app, or what theme I choose, the error is the same always, and it always ask me for the SAME file. I've tried to enter to the folder that gives me the error to verify that the file "scid.tcl" is installed corrently in my system, and it is! However the error persist.

Thanks!

problem

@Akuli
Copy link
Contributor

Akuli commented Jun 1, 2021

Do you get the error if you run this shorter program?

import ttkthemes
ttkthemes.ThemedTk(theme="breeze")

I tried it. No error for me.

@syjgino
Copy link

syjgino commented Jun 1, 2021 via email

@Akuli
Copy link
Contributor

Akuli commented Jun 1, 2021

But this code still errors?

import tkinter
from tkinter import *
from tkinter.font import BOLD, Font
from tkinter import ttk
from ttkthemes import themed_tk as tk

app = tk.ThemedTk(theme="breeze")

@syjgino
Copy link

syjgino commented Jun 1, 2021 via email

@monicacue
Copy link
Author

monicacue commented Jun 1, 2021

Do you get the error if you run this shorter program?

import ttkthemes
ttkthemes.ThemedTk(theme="breeze")

I tried it. No error for me.

Thanks Akuli!!! That line of code works perfect. The example that is found on documentation (https://ttkthemes.readthedocs.io/en/latest/example.html) or the code that I wrote above, both didn't work at all. As I mentioned before throwed me that error. But now it works. I hope the documetation of ttkthemes can be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants