The Widget Construction Kit

Fredrik Lundh

 

The Widget Construction Kit (WCK) is an extension API that allows you to implement all sorts of custom widgets, in pure Python. Creating a new widget can be as simple as:

from WCK import Widget

class HelloWidget(Widget):

    def ui_handle_repair(self, draw, x0, y0, x1, y1):
        font = self.ui_font("black", "times")
        draw.text((0, 0), "hello, world!", font)

The Tkinter 3000 implementation of the WCK is designed to work with the existing Tkinter layer, as well as the upcoming Tkinter 3000 interface layer.

The WCK is based on PythonWare’s uiToolkit’s extension API, and is designed to let you run new widgets under other toolkits as well. (for example, the effnews RSS reader for Windows uses a WCK implementation built on top of Windows’ native API.)

For more information, see this page.

A Django site. this page was rendered by a django application in 0.01s 2008-05-10 22:36:16.807343. hosted by webfaction.