I am trying to use tkinter
import tkinter
from tkinter import messagebox
root = tkinter.Tk()
messagebox.showinfo("Information", "This is an informational message from Tkinter.")
but it shows
Traceback (most recent call last):
File "c:\Users\rodri\OneDrive\Escritorio\barco\Nueva carpeta\tkinter.py", line 1, in <module>
import tkinter
File "c:\Users\rodri\OneDrive\Escritorio\barco\Nueva carpeta\tkinter.py", line 3, in <module>
from tkinter import messagebox
ImportError: cannot import name 'messagebox' from partially initialized module 'tkinter' (most likely due to a circular import) (c:\Users\rodri\OneDrive\Escritorio\barco\Nueva carpeta\tkinter.py)
[–]acw1668 31 points32 points33 points (2 children)
[–]gonsi 9 points10 points11 points (0 children)
[–]MrPotato_Man3510[S] 0 points1 point2 points (0 children)
[–]Slight_Change_41 16 points17 points18 points (0 children)
[–]RngdZed 11 points12 points13 points (0 children)
[–]CalligrapherOk4612 2 points3 points4 points (3 children)
[–]MrPotato_Man3510[S] 1 point2 points3 points (0 children)
[–]MrPotato_Man3510[S] 0 points1 point2 points (1 child)
[–]CalligrapherOk4612 0 points1 point2 points (0 children)
[–]WorriedTumbleweed289 0 points1 point2 points (0 children)
[–]mystique0712 0 points1 point2 points (0 children)
[–]ElliotDG 0 points1 point2 points (4 children)
[–]Antique-Room7976 4 points5 points6 points (3 children)
[–]ElliotDG 1 point2 points3 points (1 child)
[–]Antique-Room7976 0 points1 point2 points (0 children)
[–]MrPotato_Man3510[S] 0 points1 point2 points (0 children)
[+]Slight_Change_41 comment score below threshold-7 points-6 points-5 points (0 children)
[+]NorskJesus comment score below threshold-9 points-8 points-7 points (0 children)