Currently when the gui.py sample is run the following warnings are logged to the console:
gui.py:51: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
r = Gtk.Button(name)
gui.py:45: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
r = Gtk.CheckButton(name)
This PR resolves the warnings by passing the label using Python keyword arguments (as the warning suggests).
Currently when the
gui.py
sample is run the following warnings are logged to the console:This PR resolves the warnings by passing the label using Python keyword arguments (as the warning suggests).