I'm having this problem in VS Code python when importing Tkinter I have no idea what is this.
Asked
Active
Viewed 57 times
-1

letsintegreat
- 3,328
- 4
- 18
- 39

Mustafa Ali
- 11
- 4
-
They're all warnings, how are they preventing you? – Sayse Jan 29 '21 at 16:03
-
2What what's hard to understand about the error message? If it's the "wildcard", read [python - Should wildcard import be avoided? - Stack Overflow](https://stackoverflow.com/questions/3615125/should-wildcard-import-be-avoided) – user202729 Jan 29 '21 at 16:04
1 Answers
0
These are "just" warnings, which say you import a lot of modules via wildcard import (the * stands for import everything from tkinter). You might be able to run the code though.
Alternatively you can only write
import tkinter as tk
and then call your the subclasses etc. with a tk. before, as an example:
root = tk.Tk()

fusion
- 444
- 4
- 14