Giter Site home page Giter Site logo

pygameui's Introduction

pygameui

A simple GUI framework for Pygame.

Installation

pip install pygameui

While Pygame is listed as a dependency in our package metadata, you should install it separately ahead of time to avoid issues with libpng being improperly referenced, etc.

Environment

Tested on Mac OS X 10.7.3 running system Python 2.7.1 and Pygame installed via the "Lion apple supplied python" mpkg. Please let me know if you have issues running this on other versions of Python and/or Pygame.

Author

Brian Hammond ([email protected])

Copyright © 2012 Fictorial LLC.

Other

See the simpler branch for a much simpler version.

pygameui's People

Contributors

fictorial avatar jamesrandom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pygameui's Issues

items setter in listview not removing all items

I'm calling the items setter in listview to replace the contents with a new list of items.

The first thing that function does is attempt to remove all the children in a for loop calling child.rm()
This does not seem to completely remove all the children - it seems to leave a few somehow (the leftover children are not visible in the list after it re-displays, but the index is messed up, so selecting items with the mouse in the listview is wonky )
I fixed it with a hack: self.children=[]
That seems to work, but I'm left wondering why the children are not all deleted in the for loop.
I'm a fairly new Python user, so I may be missing something obvious...

Signal class for button click

Hello. Great project, thank you.

Regarding a game that is in project: https://github.com/Roland00111/Trumpocalypse.

Is it possible to describe the functionality for the Signal class? All that is necessary is to pass in a callback_function to an instance of a Button class for the onclick method. For the time being the idea for a workaround is to just alter Button to take a callback function as a parameter. Then call the callback function in the mouse_up function.

Can not install

I am unable to install in virtualenv, pygame dependency is missing because of versioning scheme.

$ pip install --allow-external pygame --allow-unverified pygame -U pygameui
Collecting pygameui
Using cached pygameui-0.2.0.tar.gz
Requirement already up-to-date: setuptools in /home/jazg/v/tms/lib/python2.7/site-packages (from pygameui)
Collecting pygame>=1.9.1 (from pygameui)
Could not find a version that satisfies the requirement pygame>=1.9.1 (from pygameui) (from versions: 1.7.1release, 1.8.0-deps-src, 1.8.0release, 1.8.1release, 1.9.0release, 1.9.1release, 0.1a0, 0.2b0, 0.3b0, 0.4, 0.5, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.6.2)
No matching distribution found for pygame>=1.9.1 (from pygameui)
$ lssitepackages | grep pygame
pygame
pygame-1.9.1release-py2.7.egg-info

This is how pygame is installed when built by pip from source release available from official download page http://www.pygame.org/download.shtml.

urllib2.HTTPError: HTTP Error 403: SSL is required

Hello,

When trying to install pygameui, I got an error when trying to download distribute :
urllib2.HTTPError: HTTP Error 403: SSL is required

It seems http support has now been dropped by PyPi as stated here.

As a workaround, I downloaded the packaged, uncompressed it, changed http to https for "DEFAULT URL" and run pip install against the modified package.

May be you would like to change it in your package.

Thanks.
JS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.