Skip to main content

A little GUI system made with pygame

Project description

SmolPyGUI is a little personal project that I decided I would upload to PyPI. Below are some examples of usage.

A Simple Hello World

from SmolPyGUI import initialize, Button, MainLoop

initialize((500,500)) #makes a 500x500 window

Button(300,300,100,100,"#ff0000",lambda: print("Hello World!")) #makes a 100x100 red button at 300,300 that prints "hey"

MainLoop() #starts the program

Let's Print Something More Fun

from SmolPyGUI import initialize, TextBox, MainLoop

initialize((500,500))

#a quick reminder that for TextBox and TextDisplay objects the width argument is in characters, not pixels. (ie. width 5 means it can fit 5 characters of it's size in it's width)
TextBox(0,0,500,32,onEnter=lambda x: print(x)) #TextBox().onEnter and TextBox().onInput are both given the current TextBox text value when called, so this will print the value in the TextBox when the return key is pressed

MainLoop()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smolpygui-1.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smolpygui-1.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file smolpygui-1.4.tar.gz.

File metadata

  • Download URL: smolpygui-1.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for smolpygui-1.4.tar.gz
Algorithm Hash digest
SHA256 a30eb0f95daef5479c2bb00efc9979ab127779b9f7566bfd033a79635d66cbe8
MD5 bf0037f1b5ada7a7fd9308be69dbbc11
BLAKE2b-256 ee0def8bfb9a0dca22266f9d352b418f1a31a6b6883a839273e66f8ae9c83222

See more details on using hashes here.

File details

Details for the file smolpygui-1.4-py3-none-any.whl.

File metadata

  • Download URL: smolpygui-1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for smolpygui-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b344a98a7b8c7f230f2cabf7e22830874b3cf76521f12dcb2a73ecd2daa7315
MD5 8bfb4cf7df96e755a0088c1805c1fd9c
BLAKE2b-256 a00698857d072313bd569b77e70135882055d7f0f41051db011460cd4de16b1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page