Thursday, December 31, 2009

Quidgets update - Do you want to use verbs? Yes/No

Some folks pointed out yesterday that Yes/No dialogs aren't terribly HIG compliant. So I tweaked the API a bit to allow the usage of verbs instead of stock Yes/No buttons if desired.
   response = yes_no(title,message, "_Add Verbs","_Don't add Verbs")
if response == gtk.RESPONSE_YES:
print "they said yes"

If you choose not to use the last two arguments for the Yes/No button labels, the dialog will simply default to the Stock buttons.

About Quidgets
Quickly + Widgets = Quidgets
There is a Launchpad Project for Quidgets
The most up to date changes are in the Quidgets Trunk Branch