First official release :) curses-extra offers some widgets wrotten using curses module. The following classes and functions are present in the module Widget Button ButtonBar #bar of buttons (automatically manage 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, and use it # in case #NOTE: widgets auto-check for the 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 about widgets' graphic are appreciated. Thanks, Riccardo -- -=Riccardo Galli=- _,e. s~ `` ~@. ideralis Programs . ol `**~ http://www.sideralis.net
participants (1)
-
Riccardo Galli