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

10 comments:

  1. Wow, you listened to my comment! You rule!

    ReplyDelete
  2. Thanks for sharing such an informative article.
    https://crackgrid.com/advanced-system-repair-pro-crack/

    ReplyDelete
  3. Delve into the personal healing quests of Ritu and Manish. Witness the alchemy that turned their self-healing practices into a healing haven for friends, family, and beyond.
    healingbuddha

    ReplyDelete
  4. Stay informed with The Global Hues as we deliver insights spanning industries from business and technology to health and lifestyle. Our carefully curated content empowers you with knowledge that truly matters.

    theglobalhues

    ReplyDelete