When creating a GTK Dialog in python the "old" way:
class URLDialog(Gtk.Dialog):
def __init__(self, parent):
Gtk.Dialog.__init__(self, _t("URL_DLG"), parent, 0,
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_OK, Gtk.ResponseType.OK))
I get the following warning:
PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
The link is not very explicit, and trying to get the buttons out of the initalizer leads to other, more severe problems.
My question is: What is the proper,offical and correct way to initialize such a dialog?
I can't reconstruct your problem, but I would assume this should fix it:
EDIT: as pointed out by OP