Skip to content

PolyXGO/PythonSampleCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes

Detection code is for learning and reference purposes only! I will gradually update useful code and organize it into separate files. Feature descriptions for each code file are noted at the beginning of each file.

If you find this source code helpful, consider buying me a coffee to support my work!

Buy me a coffee

Python UI Libraries

Tkinter with ttkthemes: Simple and built-in to Python, easy to use.

PyQt with QDarkStyle: Powerful, flexible, with many advanced features.
Kivy: Cross-platform application development, modern.
CustomTkinter: More modern compared to standard Tkinter.

WinOS

  1. Install Python. Set environment variables to the Python installation directory and Python\Scripts
  2. Install pip or pip3 if not already installed: python get-pip.py

Check pip version: pip --version

  1. Syntax to install required packages (if needed): pip install <package_name> or pip3 install <package_name>

  2. Run Build applications normally like Windows form application code: use Ctrl + F5

MacOS

  1. Check Python installation python3 --version pip3 --version

  2. Install Homebrew if not already installed: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  3. Install Python + Pip brew install python

  4. Set environment variables => Open: nano ~/.zshrc => Add: export PATH="/usr/local/bin:/usr/local/opt/python/libexec/bin:$PATH"

  5. Update changes source ~/.zshrc

  6. Check Pip pip3 --version

  7. Proceed to install required packages. Example: pip3 install ttkthemes pyqt5 qdarkstyle kivy customtkinter pip3 install pywin32

  8. Build Python using Terminal command in the project directory: python3 file_name.py or python file_name.py if using an older version.

NOTE

To display unicode fonts on OpenCV, use the Pillow library. pip install mediapipe opencv-python pillow or pip3 install mediapipe opencv-python pillow

Error "No module named 'PyQt5'" requires installing PyQt5. pip install PyQt5 qdarkstyle or pip3 install PyQt5 qdarkstyle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages