Python-Logo-Widgets

Python Logo Widgets
Python Logo Widgets

A group of widgets showing the Python logos, that can easily be added to your Python GUI code!

PyPI Build State PyTest State Pylint State CodeQL State Gitleaks State GitHub Version GitHub Issues GitHub Pull Requests Discord Server ID Downloads GitHub Languages

Key FeaturesDownloadHow To UseSupportContributingChangelogCredits & Contributors

Python Logo Widget Python Powered Height Widget Python Powered Width Widget

Key Features

Download

You can download the source code to run the scripts from the command line on Windows, macOS and Linux. This will require Python.

How To Use

Install

pip install Python-Logo-Widgets

Embed in Your Application

import tkinter as tk
from python_logo_widgets import LogoWidget, PoweredByLengthWidget, PoweredByWidthWidget

root = tk.Tk()
root.title("My App")

# Add any combination of widgets to your window
LogoWidget(root, bg="white").pack(pady=10)
PoweredByWidthWidget(root).pack(side=tk.BOTTOM)

root.mainloop()

Available widgets:

Widget Class Image
LogoWidget Python logo
PoweredByLengthWidget “Python Powered” tall badge
PoweredByWidthWidget “Python Powered” wide badge

Each widget accepts a parent widget and an optional bg parameter (default "black").

Run the Demo

# Via the command line entry point
python-logo-widgets

# Or as a module
python -m python_logo_widgets

Git (Development)

# Clone this repository
$ git clone https://github.com/willtheorangeguy/Python-Logo-Widgets

# Go into the repository
$ cd Python-Logo-Widgets

# Install in development mode
$ pip install -e .

# Run the demo
$ python -m python_logo_widgets

Support

Customizing the logo and widget sizes can be found in CUSTOMIZATION. Hard-coding the widgets into your project can be found in USAGE. More documentation is available in the Documentation and on the Wiki. If more support is required, please open a GitHub Discussion or join our Discord.

Contributing

Please contribute using GitHub Flow. Create a branch, add commits, and open a pull request.

Please read CONTRIBUTING for details on our CODE OF CONDUCT, and the process for submitting pull requests to us.

Changelog

See the CHANGELOG file for details.

Credits

This software uses the following open source packages, projects, services or websites:

</table> ## Contributors * [@willtheorangeguy](https://github.com/willtheorangeguy) - Sponsor on [PayPal](https://paypal.me/wvdg44?country.x=CA&locale.x=en_US) ## You may also like... * [Running Calculator](https://github.com/willtheorangeguy/Running-Calculator) - A running speed calculator for any unit of distance. * [PyWorkout](https://github.com/willtheorangeguy/PyWorkout) - A minimal CLI to keep you inspired during your workout! * [PyAvatar](https://github.com/willtheorangeguy/PyAvatar) - Easily display all of your creative avatars to keep them consistent across websites. ## License This project is licensed under the [GNU General Public License](https://www.gnu.org/licenses/gpl-3.0.en.html) - see the [`LICENSE`](/Python-Logo-Widgets/LICENSE.md) file for details. See the [Privacy Policy](https://github.com/willtheorangeguy/Python-Logo-Widgets/blob/master/docs/legal/PRIVACY.md) and [Terms and Conditions](https://github.com/willtheorangeguy/Python-Logo-Widgets/blob/master/docs/legal/TERMS.md) for legal information.
GitHub PSF PyInstaller
GitHub Python Software Foundation PyInstaller
Web - Plans Web - Donate Web - Donate