Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Python] Problem with Tkinter

$
0
0
Hi, I've tried to use Tkinter with Debian. My program was really short:

Code:

import tkinter

I've used the command python3 test2.py to run it with Python. It is the output:

Code:

user@debian:~/Documents$ python3 test2.pyTraceback (most recent call last):  File "/home/user/Documents/test2.py", line 1, in <module>    import tkinter  File "/home/user/Documents/tkinter.py", line 1    Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux                                      ^SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
Programs without tkinter haven't done any problems. Do you have any idea what is wrong?

Statistics: Posted by incitatus — 2024-10-22 21:36 — Replies 0 — Views 29



Viewing all articles
Browse latest Browse all 3423

Trending Articles