Python Opensource Packages
Welcome to my opensource repository of python packages I have made available to any
and all python programmers.
Questions, comments, bug reports, etc. may be reported to: dpopowich AT
astro.umass.edu.
For more information about my python experience, please see my Python
Software Engineering resume: pdf.
Cheers,
Daniel J. Popowich
Mod_python Servlets (mpservlets)
Mpservlets offers an object-oriented programming toolkit for providing
webpages and other dynamic web content via apache. It is built on top
of, and requires, mod_python 3.x (which in turn requires apache 2.x).
Hompage is here. The latest version, 1.1.6
can be downloaded here.
ValidatedEntry, a pygtk extension providing a validated Entry widget
ValidatedEntry is a subclass of gtk.Entry, providing validation of
input based on programmable functions. If you need to validate input
before accepting it, this widget can help. Sample functions included
in the package provide validation for integers, floats, non-empty
strings, ISBN numbers, phone numbers, money and bounded values (e.g.,
integers in a range). A demo app is included in the package. The
latest version, 1.0.4, can be downloaded here.
TreeViewTooltips, a pygtk extension providing tooltip support for
TreeView widgets
TreeViewTooltips is a class which presents tooltips for cells, columns
and rows in a gtk.TreeView. To use you need to subclass
TreeViewTooltips and implement the get_tooltip() method which takes as
input the TreeView and the TreeViewColumn and path of the current row.
Based on whether or not column and path are checked for specific
values, get_tooltip() can return tooltips for a cell, column, row or the
whole view:
| Column Checked | Path Checked | Tooltip For... |
| Y | Y | cell |
Y | N | column |
N | Y | row |
N | N | view |
get_tooltip() should return None if no tooltip should be displayed.
Otherwise the return value will be coerced to a string (with the str()
builtin) and stripped; if non-empty, the result will be displayed as
the tooltip. By default, the tooltip popup window will be displayed
centered and just below the pointer and will remain shown until the
pointer leaves the cell (or column, or row, or view, depending on how
get_tooltip() is implemented).
A demo app is included in the package. The latest version, 1.0.0, can
be downloaded here.