On Tue, Jun 18, 2002 at 10:14:17PM +0200, Thomas Guettler wrote: > On Tue, Jun 18, 2002 at 08:45:20PM +0200, Thomas Guettler wrote: > > Hi! > > > > Is there a Method/Class for a standard dialog with the usual "Yes", > > "No", "Cancel" buttons? > > > > Since I found no function I wrote on myself. Feedback welcome! > > +++ > import gtk > def yesNoDialog(yes_text="Yes", no_text="No", cancel_text="Cancel"):
Well, if you _must_ use a modal dialog, be aware that rephrasing the dialog to allow only two options, "OK" and "Cancel", provides improved usability cross-platforms. I can't dig up a reference at the moment, so you'll have to infer it from mpt's mozilla-ui post. http://www.geocrawler.com/archives/3/112/1999/11/0/2906763/ http://lists.gnome.org/archives/gnome-list/2002-February/msg00317.html Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
