Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

kytten

Automatically exported from code.google.com/p/kytten

Not currently being maintained.

UPDATE

Raymond Chandler III has forked kytten as part of a project to make an overall collection of easy and useful libraries for Pyglet. You can see the github fork here:

https://github.com/kitanata

FEATURES

Customizable!

A simple theme editor allows you to create theme files with textures you provide. Textures may contain one or more graphics, you can then use the image region selector to define individual images in a texture, or set the stretchable parts of images that are designed to wrap content.

Simple GUI construction.

Create a Dialog containing multiple widgets in one Python call! For example:

dialog = kytten.Dialog(
    kytten.TitleFrame("Kytten Demo",
        kytten.VerticalLayout([
            kytten.Label("Select dialog to show"),
            kytten.Menu(options=["Document", "Form", "Scrollable"],
                        on_select=on_select),
        ]),
    ),
    window=window, batch=batch, group=fg_group,
    anchor=kytten.ANCHOR_TOP_LEFT,
    theme=theme)

Dialogs are self-sizing and positioning!

Widgets may be arranged vertically, horizontally, in a grid, or free form.

Scrollable!

You can embed parts of the GUI within a scrollable area, allowing you to create very long menus or documents.

Controls implemented so far:

  • Labels
  • Text input fields
  • Buttons
  • Checkboxes
  • Sliders
  • Scrollbars
  • Menus
  • Untitled and titled frames
  • Section headers and folding sections
  • Dropdown menus
  • FileLoadDialog and FileSaveDialog
  • PopupMessage and PopupConfirm

REQUIREMENTS

You'll need to update to pyglet 1.1.3 if you haven't already!

If you use a version of Python older than 2.6, simplejson will not be included in Python. kytten will try to use a safe_eval routine to process .json files.

About

Automatically exported from code.google.com/p/kytten

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.