Introduction
Introduction
Requirements
Title: Prerequisites
Content:
import tkinter as tk
def on_click():
print("Button clicked!")
root = tk.Tk()
root.title("My App")
button = tk.Button(root, text="Click Me", command=on_click)
button.pack()
root.mainloop()
• Install PyInstaller:
pip install pyinstaller
• Run PyInstaller to convert your script:
pyinstaller --onefile my_script.py
• Output:
o An executable file inside the "dist" folder.
• Additional Options:
o Add an icon: --icon=app_icon.ico
o Use --noconsole to hide the console for GUI apps.
Step 4 - Test Your App
Title: Step 4: Test and Debug
Content:
• Packaging Options:
o Use tools like Inno Setup (Windows) or DMG Canvas (macOS).
o Create a compressed folder with instructions.
• Share via:
o Cloud services (e.g., Google Drive, Dropbox).
o App stores (for mobile or platform-specific apps).