A general purpose GUI made in python and pycairo.
Find a file
2014-02-11 16:03:10 -07:00
img Fixed some issues with image aspect ratio. Added preliminary gradient features for rounded rectangles. 2014-02-10 13:43:15 -07:00
jgui Sped up the algorithm of checking mouse enter and leave events. 2014-02-11 16:03:10 -07:00
screenshots Added another screenshot. 2014-02-10 19:52:42 -07:00
featurelist.txt Added support for background images on any window. 2014-02-07 11:58:22 -07:00
gtktest.py Refactored a lot of code. Added a preliminary text window 2014-02-04 22:54:05 -07:00
LICENSE Initial commit 2014-01-27 13:04:21 -08:00
qttest-alt.py Added pyqt example files and updated some test code. 2014-02-07 21:02:02 -07:00
qttest.py Added pyqt example files and updated some test code. 2014-02-07 21:02:02 -07:00
README.md Update README.md 2014-02-10 19:53:18 -07:00
test.py Sped up the algorithm of checking mouse enter and leave events. 2014-02-11 16:03:10 -07:00
testclasses.py Sped up the algorithm of checking mouse enter and leave events. 2014-02-11 16:03:10 -07:00

JGUI

A general purpose, batteries included, vector based GUI library made in python and pycairo. It's goal is to be reusable, multiplatform and visually scalable. As long as you have a cairo surface or something that can display an array of pixels, this library should work.

Right now I have an example in test.py that tests the functionality in panda3d. Go to panda3d.org to download it and then run the script with python test.py.

Startup Guide

Install python-cairo, python-gobject, python-gi-cairo

On Ubuntu:

sudo apt-get install python-cairo python-gobject python-gi-cairo -y

To run test.py and gtktest.py, you'll need panda3d and pygtk respectively

sudo apt-get install python-gtk2

You'll have to go to https://www.panda3d.org/download.php?sdk&version=1.8.1 to get the latest version, or compile it from source if your OS isn't supported.

After that, you should be able to run

python test.py

or

python gtktest.py

Screenshots

ScreenShot

ScreenShot