Skip to content

TommyPKeane/learning-python-qt6-pyside6

Repository files navigation

Examples of Qt Applications with pyside6 for Qt6 in Python

This is an example/tutorial repository of Open-Source (GPL) Qt Applications using pyside6 and Python on top of Qt6, which retains the GPLv2 Licensing (see the LICENSE file).

  • Developer Setup
  • Examples
    • example_basic
  • Creating New Examples with cookiecutter
  • Reference Links

Developer Setup

  1. direnv allow
  2. pip install --upgrade pip
  3. pip install poetry
  4. poetry install

For each example, it is not necessary that you have qmake in your PATH in order to install pyside6, but if you want to use all of the Qt6 features and create a built/exported application, you may need to download and install the Qt6 open-source installer.

The Qt Installer -- https://www.qt.io/download-open-source -- should be downloaded and run before doing any of the above.

Examples

This repository contains several isolated examples of Qt6 Applications using pyside6, which are each summarized here in this section of the README.

example_basic

Simple example of an application that generates a window with a few basic callbacks. This example is meant to be a catchall introduction to pyside6 development without getting too deeply into any specifics.

Creating New Examples with cookiecutter

The top-level directory for this repository is setup with direnv, poetry, and a scaffolding package for Python called cookiecutter, which allows for easy creation of new examples with a bunch of common code and files.

To create a new example directory here, run the following:

  1. cookiecutter ./_cookiecutter-template
  2. Fill-out new values for each entry

Reference Links

About

Example repo of Open-Source (GPL) Qt Applications using `pyside6` and Python on top of Qt6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages