All Projects → AustL → PygameWidgets

AustL / PygameWidgets

Licence: MIT license
A module for use with Pygame. Includes fully customisable buttons, textboxes, sliders and many more, as well as the ability to create and run animations on these widgets.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PygameWidgets

Ng Bootstrap
Angular powered Bootstrap
Stars: ✭ 7,872 (+23052.94%)
Mutual labels:  progress-bar, widgets, buttons, dropdown
Ngx Loading Bar
Automatic page loading / progress bar for Angular
Stars: ✭ 633 (+1761.76%)
Mutual labels:  progress-bar, loading-bar
Examples Gtkmm
Shows how to use Gtkmm controls by programming code (c++17).
Stars: ✭ 23 (-32.35%)
Mutual labels:  widgets, combobox
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (+64.71%)
Mutual labels:  progress-bar, widgets
Ssspinnerbutton
Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.
Stars: ✭ 357 (+950%)
Mutual labels:  buttons, animations
Tristatetogglebutton
Customizable tri-state toggle button (with three states, three state toggle) for Android
Stars: ✭ 198 (+482.35%)
Mutual labels:  buttons, switch
React Redux Loading Bar
Loading Bar (aka Progress Bar) for Redux and React
Stars: ✭ 894 (+2529.41%)
Mutual labels:  progress-bar, loading-bar
Flutter smart select
SmartSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
Stars: ✭ 179 (+426.47%)
Mutual labels:  dropdown, switch
Bgradualprogress
可实现多种渐变、直角or弧角、进度条、加载条 (Various gradient, right or arc angle, progress bar and loading bar can be realized)
Stars: ✭ 108 (+217.65%)
Mutual labels:  progress-bar, loading-bar
Hibiscus.js
Native Angular directives for Bootstrap4
Stars: ✭ 115 (+238.24%)
Mutual labels:  progress-bar, buttons
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+8547.06%)
Mutual labels:  progress-bar, animations
RevealLayout
揭示效果布局,可以指定2个子布局,以圆形揭示效果切换选中状态
Stars: ✭ 118 (+247.06%)
Mutual labels:  toggle, switch
CompositeToggle
Composite toggle system for unity
Stars: ✭ 38 (+11.76%)
Mutual labels:  toggle, switch
Vue Particle Effect Buttons
A bursting particles effects buttons component ✨💥❄️🌋
Stars: ✭ 219 (+544.12%)
Mutual labels:  buttons, animations
ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-58.82%)
Mutual labels:  toggle, switch
PolishAnnoyanceFilters
Polskie Filtry Elementów Irytujących ukrywają i blokują wyskakujące okienka, widgety, newslettery, powiadomienia push, strzałki, niezgodne z tematem artykułów otagowane linki wewnętrzne i inne drażniące elementy (Polskie Filtry RODO-Ciasteczkowe są już w nich zawarte).
Stars: ✭ 45 (+32.35%)
Mutual labels:  widgets, buttons
Tippyjs
Tooltip, popover, dropdown, and menu library
Stars: ✭ 9,433 (+27644.12%)
Mutual labels:  dropdown, combobox
Downshift
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
Stars: ✭ 10,183 (+29850%)
Mutual labels:  dropdown, combobox
Core Components
Accessible and lightweight Javascript components
Stars: ✭ 85 (+150%)
Mutual labels:  progress-bar, dropdown
Pace
Automatically add a progress bar to your site.
Stars: ✭ 15,368 (+45100%)
Mutual labels:  progress-bar, loading-bar

Pygame Widgets

A helper module for common widgets that may be required in developing applications with Pygame. It supports fully customisable buttons, collections of buttons, textboxes, sliders and many more! If there are any widgets that you would like to see added, please create an issue!

Changes in Pygame Widgets v1.0.0

In v1.0.0, there are some minor changes to the use of the module, which may affect existing projects. This outlines the changes that will affect current users in the new version.

  • As more widgets are added, importing is now different
# Now
from pygame_widgets.button import Button

# Instead of
from pygame_widgets import Button  # Will not work
  • All widgets are now updated (draw and listen) by the update method
import pygame
import pygame_widgets
from pygame_widgets.button import Button

pygame.init()
win = pygame.display.set_mode((600, 600))
button = Button(win, 100, 100, 300, 150)

run = True
while run:
    events = pygame.event.get()
    for event in events:
        if event.type == pygame.QUIT:
            pygame.quit()
            run = False
            quit()
            
    win.fill((255, 255, 255))
    
    # Now
    pygame_widgets.update(events)
    
    # Instead of
    button.listen(events)
    button.draw()
    
    pygame.display.update()

Prerequisites

Installation

Ensure that Python 3 and pip are installed and added to your environment PATH.

python -m pip install pygame-widgets

Open a Python console and run the following command.

import pygame_widgets

If you receive no errors, the installation was successful.

Usage

For full documentation, see pygamewidgets.readthedocs.io.

How to Contribute

Any contribution to this project would be greatly appreciated. This can include:

  • Finding errors or bugs and creating a new issue
  • Addressing active issues
  • Adding functionality
  • Improving documentation

If applicable, you should make any changes in a forked repository and then create a pull request once the changes are complete and preferably tested if possible.

Note: If writing any code, please attempt to follow the Code Style Guide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].