simple widgets for pygame like button, checkbox, and textbox
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


It has simple widgets like button, checkboxes, textboxes, and more. There also Page Flipping model. There are also some tools like gradient, pathfinder, and more. PygameUI is in it first stages. Meaning things will change and break.

Page Flipping examples.

Example 1. how to open simple PygameUI screen.

import PygameUI as UI

if __name__ == '__main__':
    # Tell screen to initialize pygame window
    UI.screen.handle.set_screen('Simple PygameUI Screen', (800,600))
    # Tell screen to start flipping.

Example 2. how to use PygameUI page.

import PygameUI as UI

# Making a page. 
class Page(UI.screen.Page):
    def blit(self, surface):

if __name__ == '__main__':
    UI.screen.handle.set_screen('PygameUI Page Example', (800,600))
    # storing a page['page'] = Page()
    # Tell screen to start flipping with page.

Update code to follow pep8 style guide

Did a clean up and simplified Just trying to follow KISS (Keep It Simple Stupid).

If you like widget to handle them self. here an option.

class WidgetControlPage(object):
    def __init__(self, page): = page

    def entrance(self):

    def on_exit(self):

    def blit(self, surface):
        for key in self.widgets.iterkeys():

    def event(self, event):
        for key in self.widgets.iterkeys():

    def update(self, tick):
        for key in self.widgets.iterkeys():