You've just made a beautiful GUI app with Python - but there's a big difference between creating an app for your personal use and distributing it all across the web, reaching many people who don't necessarily know anything about Python.
In this tutorial, I will show you exactly how to convert your Tkinter, Kivy, KivyMD, PyQT5, or other GUIs into a full-blown professional program! ๐คฉ๐คฉ๐คฉ
The end result is a ๐ฑ SINGLE SETUP FILE ๐ฑ which anyone can download and install on their computer - even your grandmom!!! ๐ต
We will use Pyinstaller to create an executable file and Inno Setup to bundle it with dependencies and convert them into a setup wizard.
In addition, we will discuss some common errors, how to fix them and how to avoid irrelevant instructions (hint: do we really need to modify the SPEC file? ๐ค)
We will briefly tackle licensing (open source, as you may guess ๐), and generating icons.
Please note, this video is designed for Windows developers and users! However, I will cover Linux and Mac as well in some future tutorials... the Mac tutorial is of course inspired by Tom! XDD (but only members of our Discord community will understand the joke, this is how I test if they read video descriptions ๐ )
-------------------------------------------
โฐ Time Stamps โฐ
-------------------------------------------
00:00 - intro
00:40 - project files and database
01:31 - download Random Recipe Picker (or use your own Python app)
03:29 - install requirements.txt
03:46 - Pyinstaller vs auto-py-to-exe
04:25 - run Pytinstaller builder
05:22 - prep GUI script for Pyinstaller
05:56 - resource path (and important sys._MEIPASS fix!)
08:18 - SPEC file
09:20 - generate software icons
10:04 - convert script and assets to exe file
11:22 - fix Pyinstaller File Not Found Error
12:48 - test executable
13:36 - install Inno Setup
14:17 - convert exe and assets into a setup file
16:39 - license
20:00 - add subdirectories to Inno Setup compilable
21:56 - test setup file on another PC
22:57 - thanks for watching! :)
-------------------------------------------
๐ฝ๏ธ Important Tutorials ๐ฝ๏ธ
-------------------------------------------
โญ Create GUI App with SQLite and Tkinter (Random Recipe Picker):
https://www.youtube.com/watch?v=5qOnzF7RsNA
โญ Anaconda for Beginners:
https://www.youtube.com/watch?v=MUZtVEDKXsk
โญ Convert .py to .exe with auto-py-to-exe:
https://www.youtube.com/watch?v=Y0HN9tdLuJo
-------------------------------------------
๐ป VENV Alternative ๐ป
-------------------------------------------
$ python3 -m venv name_of_my_env
$ source name_of_my_env/bin/activate
-------------------------------------------
๐๏ธ Tutorial Links ๐๏ธ
-------------------------------------------
๐ Random Recipe Picker Repository: https://github.com/MariyaSha/RandomRecipePicker
๐ Resource Path Function (Stack Overflow): https://stackoverflow.com/questions/31836104/pyinstaller-and-onefile-how-to-include-an-image-in-the-exe-file
๐ PNG to ICO Icon Converter: https://image.online-convert.com/convert-to-ico
๐ Inno Setup: https://jrsoftware.org/isinfo.php
๐ Open Source Initiative MIT License: https://opensource.org/licenses/MIT
-------------------------------------------
๐ค Connect with me ๐ค
-------------------------------------------
๐ Github:
https://github.com/mariyasha
๐ Discord:
https://discord.com/invite/wgTTmsWmXA
๐ LinkedIn:
https://ca.linkedin.com/in/mariyasha888
๐ Twitter:
https://twitter.com/mariyasha888
๐ Blog:
https://www.pythonsimplified.org/
-------------------------------------------
๐ณ Credits ๐ณ
-------------------------------------------
โญ Beautiful titles, transitions, sound FX, and music:
mixkit.co
โญ Beautiful icons:
flaticon.com
#gui #graphics #app #application #python #pythonprogramming #exe #pythoncoding #software #softwaredevelopment #pythonsimplified #convert #code #pyinstaller #innosetup #wizard #windows
523 Comments