I've never seen the need to generate an .EXE file, because my programs were tested on my own machine, but now I need to generate an EXE to test on other computers.
In my program I have imported the following libraries:
from pygame import mixer # Load the required library
from pygame import time #teste
from tkinter.filedialog import askopenfilename
from tkinter import *
import tkinter.simpledialog
import tkinter.messagebox
When I run the script in the interpreter, the program runs normally, but when I go to run the EXE and click on the "Create playlist" or "Open Playlist" buttons, it returns an error saying that the name simpledialog has not been defined in the program.
I've already tried adding:
name = tkinter.simpledialog.askstring("Name", "Nome da Playlist")
name = simpledialog.askstring("Name", "Nome da Playlist")