>> Where are GtkDialogFlags defined? I can find them in gtk-types.defs, >> but I don't know how to access them.
Matt> They are: Matt> gtk.DIALOG_MODAL, gtk.DIALOG_DESTROY_WITH_PARENT, etc. There are so many symbols in the gtk and gtk.gdk modules (> 1100 all told), that I added a modified dir() function and a dirpat() function to my PYTHONSTARTUP file: from __builtin__ import dir as _dir def dir(o=globals,showall=0): if not showall and hasattr(o, "__all__"): x = list(o.__all__) x.sort() return x return _dir(o) import re def dirpat(o, pat): """like dir, but only return strings matching re pat""" names = dir(o, showall=1) return [x for x in names if re.search(pat, x) is not None] It produces what I find to be useful output: >>> dirpat(gtk, "(?i)dialog") ['ColorSelectionDialog', 'DIALOG_DESTROY_WITH_PARENT', 'DIALOG_MODAL', 'DIALOG_NO_SEPARATOR', 'Dialog', 'FontSelectionDialog', 'ICON_SIZE_DIALOG', 'InputDialog', 'MessageDialog', 'STOCK_DIALOG_ERROR', 'STOCK_DIALOG_INFO', 'STOCK_DIALOG_QUESTION', 'STOCK_DIALOG_WARNING'] >>> dirpat(gtk, "DIALOG") ['DIALOG_DESTROY_WITH_PARENT', 'DIALOG_MODAL', 'DIALOG_NO_SEPARATOR', 'ICON_SIZE_DIALOG', 'STOCK_DIALOG_ERROR', 'STOCK_DIALOG_INFO', 'STOCK_DIALOG_QUESTION', 'STOCK_DIALOG_WARNING'] >>> dirpat(gtk, "Dialog") ['ColorSelectionDialog', 'Dialog', 'FontSelectionDialog', 'InputDialog', 'MessageDialog'] YMMV... -- Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/) _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk