Is giving problems when using Tkinter in windowa

Asked

Viewed 15 times

0

I ran this program on my mobile and it ran well, I went riding on PC (Windows) and gave a problem, can help me?

from tkinter import *
from tkinter.filedialog import *
from tkinter.font import *
from tkinter.messagebox import *
from tkinter.scrolledtext import *
*import file_menu
import edit_menu
import format_menu
import help_menu*

root = Tk()

root.title("EderPad - Untiltled")
root.geometry("300x250+300+300")
root.minsize(width=400, height=400)

text = ScrolledText(root, state = 'normal', height = 400, width = 400, wrap = 'word', pady = 2, padx = 3, undo = True)
text.pack(fill = Y, expand = 1)
text.focus_set()

menubar = Menu(root)

file_menu.main(root, text, menubar)
edit_menu.main(root, text, menubar)
format_menu.main(root, text, menubar)
help_menu.main(root, text, menubar)
root.mainloop()

  • The error happens in that import this is the error

import file_menu
Modulenotfounderror: No module named 'file_menu'

  • The syntax of import is wrong on line 6 and line 9 of the code. Remove their asterisk. As for the error of ModuleNotFoundError, please give more details so we can help you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.