Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Demo desktop apps built with Python & Qt. With examples for PyQt6, PySide6, PyQt5 & PySide2

License

NotificationsYou must be signed in to change notification settings

pythonguis/pythonguis-examples

Repository files navigation

This repository contains 100s of GUI examples written in Python. From complete working applications to reusable widgets snippets, these examples canbefreely re-used, re-mixed and tweaked to build your own Python GUI applications.

Examples are available forPyQt6,PySide6,PySide2andPyQt5

Many of these examples have more detailed write-ups on thePython GUIs website. If you're new to creating GUI apps check out the introductoryPyQt6 tutorial orPySide6 tutorial.

The demo apps

The apps showcase various parts of the Qt framework, including advanced widgets,multimedia, graphics views and decorationless windows. However, the mostgenerally interesting/feature complete applications are Minesweeper, Solitaireand Paint.

  1. Web Browser (untabbed) - "MooseAche"
  2. Web Browser (tabbed) - "Mozzarella Ashbadger"
  3. Minesweeper - "Moonsweeper"
  4. Notepad - "No2Pads"
  5. Calculator - "Calculon" (QtDesigner)
  6. Word Processor - "Megasolid Idiom"
  7. Webcam/Snapshot - "NSAViewer"
  8. Media Player - "Failamp"
  9. Post-it Notes - "Brown Note" (QtDesigner)
  10. Paint - "Piecasso" (QtDesigner)
  11. Unzip - "7Pez" (QtDesigner)
  12. Translator - "Translataarrr" (QtDesigner)
  13. Weather - "Raindar" (QtDesigner)
  14. Currency converter - "Doughnut" (PyQtGraph)
  15. Solitaire - "Ronery" (QGraphicsScene)

The widgets

Graphical EqualizerGraphical Equalizer Visualize audio frequency changes with configurable styles and decay.

Power MeterPower Bar Rotary control with amplitude display.

PalettePalette Select colors from a configurable linear or grid palette.

Gradient EditorLinear Gradient Editor Design custom linear gradients with multiple stops and colors.

Color Button Simple button that displays and selects colors.

Paint Draw pictures with a custom bitmap canvas, with color and pen control.

Password Edit A password line editor with toggleable visibility action.

Toggle WidgetReplace checkboxes with this handy toggle widget, with custom colors and optional animations.

The tutorials

As well as the complete apps & re-usable widgets we've got selection of code snippets taken from tutorials on thePython GUIs website. These guide you through building GUIs with PyQt, PySide and other libraries.

Getting started

To use each app you first need to install the requirements. In most casesthe only requirements are the GUI library and occasionally requests. To installexample specific requirements change to the folder of the example and run:

pip3 install -r requirements.txt

Once the requirements are installed, you can run the app. Every example in this repo comes with a main Python file calledmain.py to keep things simple.

python3 main.py

The application window should appear.

Want to build your own apps?

If you think these apps are neat and want to learn more abouttake a look at myPyQt6 tutorialwhich covers everything you need to know to start building your own applications with Python.

You can also find more write-ups and tipson the same site.

License

All code islicensed under an MIT license. This allows you to re-use the code freely, remixed in both commercial and non-commercial projects. The only requirement is to include the same license when distributing.

Other licenses

Icons used in the applications are byYusuke Kamiyaman.

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp