TkinterEP / ttkthemes

A group of themes for the ttk extenstions for Tkinter
GNU General Public License v3.0
368 stars 48 forks source link

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

Closed monicacue closed 3 years ago

monicacue commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

I just tried it. No errors for me.

On Tue, Jun 1, 2021 at 1:28 PM Akuli @.***> wrote:

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

import ttkthemesttkthemes.ThemedTk(theme="breeze")

I tried it. No error for me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TkinterEP/ttkthemes/issues/83#issuecomment-852423996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFVFULYOT3TLQR7OBKZNYPDTQU7F3ANCNFSM455IPSSA .

Akuli commented 3 years ago

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 commented 3 years ago

No, no errors for me. The question is from *m*onicacue though.

On Tue, Jun 1, 2021 at 1:40 PM Akuli @.***> wrote:

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")

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TkinterEP/ttkthemes/issues/83#issuecomment-852430878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFVFUL6KYVH5EJBOIDCVIWLTQVAVVANCNFSM455IPSSA .

monicacue commented 3 years ago

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.