Answers for "how to make apps with python"

1

how to open apps using python

import pyttsx3
import subprocess 
import os
import time


pyttsx3.speak("Hi user")
time.sleep(2)
pyttsx3.speak("you can open any apps in this coming list")
time.sleep(3)
print("You can open any app from this list:- ")  
print("NOTEPAD t GOOGLEnVirtual Box t unity nEXIT ")

while True:
    # take input
    
    print("Chat with me which app to open : ", end='')
    p = input().upper()
    print(p)
  
    if ("NOTE" in p) or ("NOTES" in p) or ("NOTEPAD" in p) :
        pyttsx3.speak("Opening , Notepad")
        os.system("notepad.exe")
        
   
  
    elif ("GOOGLE" in p or "CHROME" in p):
        pyttsx3.speak("opening chrome please wait")
        time.sleep(3)
        subprocess.call(['C:/Program Files (x86)/Google/Chrome/Application/chrome'])

    
    elif "UNITY" in p:
        pyttsx3.speak("Opening unity")
        subprocess.call(['file path of unity'])
    
        
    elif ("EXIT" in p) or ("QUIT" in p) or ("CLOSE" in p):
        print("thanks")
        time.sleep(1)
        pyttsx3.speak("Exiting this app thanks for using this app")
        break
  
    else:
        print("Is Invalid,Please Try Again")
        pyttsx3.speak("its Invalid,Please try again ")
Posted by: Guest on August-04-2021
3

python simple web app

# Core web app using flask
# Download flask if you haven't
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run()

# If you want to put this on the internet, use something like heroku to deploy it.
Posted by: Guest on September-14-2020
2

real python kivy

$ pip install buildozer
Posted by: Guest on August-13-2020
2

python app development

Tkinter is Best but If You Want You Can Use Tkinter, Kivy, PyQt5.
If For Game Development Then Pygame
Posted by: Guest on August-21-2020
2

build a python app

pyinstaller needed
pip install pyinstaller

on windows cmd write:
pyinstaller.exe --onefile --debug=all --windowed --name=myApp --icon=img/app.ico --paths venv/path/site-package app.py

--onefile	include all in one file, optional
--debug		debug at app s launch, NOT use --windowed
--windowed	for gui applications, optional
--name		app name, optional
--icon		app s icon, optional
app.py		main file of the project
Posted by: Guest on August-26-2020

Code answers related to "how to make apps with python"

Python Answers by Framework

Browse Popular Code Answers by Language