How do I import text source files into Tkinter in Python?

Asked

Viewed 167 times

0

I want to know how I can import the source file using Tkinter, so that no source problems occur on other systems. Because if I send it to a friend, he won’t be able to see the selected source if he doesn’t have the source installed on his system. Is it possible? If yes, how could I do that? Thank you

1 answer

0


In this case, you can create an executable of your project with Pyinstaller, it will create an executable to run on any machine, even if you haven’t installed Python.

  • Even without the installed source?

  • failed to explain that when creating the executable it is necessary to specify a folder with all the resources that will be embedded in the executable, including the source. The way to access the source by code changes a bit too - see pyinstaller documentation

Browser other questions tagged

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