ANN: curses-extra 0.2
David Fraser
davidf at sjsoft.com
Thu Oct 14 08:12:35 EDT 2004
Riccardo Galli wrote:
> First official release :)
>
> curses-extra offers various widgets wrotten using curses module.
>
> In the module are presents the following classes and functions
>
> Widget
> Button
> ButtonBar #bar of buttons (manage automatically arrow keys)
> CheckButton
> RadioButton
> CheckButtonList #list of checkbutton (as ButtonBar)
> ComboBox
> Menu
> MenuBar
>
> add_shortcut(pattern,action) #check combinations of keys, eg <ctrl>H
> use_shortcut(c,obj) #check if character is a shortcut, use it in case
> #NOTE: widgets auto-check shortcuts
>
> chgat(win[,y,x],count,attr,color) #change attributes of an area
>
> You can find it at
> http://www.sideralis.net/index.php?action=4&pjid=20
>
> Suggestions about API or widgets' graphic are appreciated
>
> Thanks,
> Riccardo
>
Riccardo, this looks fantastic!
I wonder if it would be a good idea to look at some of the Python GUI
wrappers that wrap multiple different GUIs.
PyGui is the main one:
http://nz.cosc.canterbury.ac.nz/~greg/python_gui/
and recently I saw this:
http://students.ceid.upatras.gr/~sxanth/twgui/
If you can have those approaches in mind when you design your API it may
be possible to add curses-extra, so that an application can use a
text-based GUI as an alternative!
David
More information about the Python-list
mailing list