You are not logged in Log in Join
You are here: Home » Members » TheJester » Dynamic Button Generation » swpackage_view

Log in
Name

Password

 
 

Dynamic Button Generation

This is a two part product, it consists of an Image Factory product, which caches the generated images, and a tag that is used for generating said buttons.

The README file contains the example code from the ZButton Demo page, but, you'll have to fetch the template I used (the URL is in the README).

This product REQUIRES PIL, it's tested with 1.1.1. you also need jpeg support (paletted image support in PIL really sucks) Consequently the following things that I'd really like to have are missing;

  • Transparent backgrounds o True/Free Type support.

If someone motivates me enough (pays me to), I might be convinced to create a write filter for PIL to write out transparent PNG files. If one appears in PIL that doesn't have absolutely crap palette reduction, its pretty simple to fix Buttons to use it, and transparent backgrounds will be available.

PyFT doesn't support the latest FreeType libraray that comes with XFree-4, and I wasn't going to destroy my workstation after spending eons getting the way I like it, just for buttons d8)

If a later version of PyFT comes out, I'll look at using True Type fonts.

This is a large product, because it contains all of the 75dpi X fonts on my system, these fonts are unencumbered, and have been pre-converted to work with PIL.

Once you've installed an Image Factory somewhere in your tree.

will give you a nifty usage page.

All arguments to are expressions... that means literals need to be enclosed by "' '" to make sure they don't clash with Zope Ids you might have. While this is annoying if you hard code buttons, it's quite nice if you generate them, which I expect the normal case to be.

Latest Release: 0.0.1
Last Updated: 2001-09-25 11:55:11
Author: TheJester
Categories: Visual
Maturity: Stable

Available Releases

Version Maturity Platform Released
0.0.1 Stable   2001-09-25 11:55:11
  ZButtons-0_0_1.tgz (15 K) All
0.0.0 Development   2001-04-10 01:08:46
  ZButtons-0_0_0.tgz (649 K) All