Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cleanup GTK examples. #12984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2018
Merged

Cleanup GTK examples. #12984

merged 1 commit into from
Dec 14, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Dec 13, 2018

Right now they emit warnings:

gtk_spreadsheet_sgskip.py:36: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "homogeneous, spacing" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  vbox = Gtk.VBox(False, 8)
gtk_spreadsheet_sgskip.py:39: 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
  label = Gtk.Label('Double click a row to plot the data')
gtk_spreadsheet_sgskip.py:51: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.treeview = Gtk.TreeView(model)
gtk_spreadsheet_sgskip.py:52: DeprecationWarning: Gtk.TreeView.set_rules_hint is deprecated
  self.treeview.set_rules_hint(True)
pylab_with_gtk_sgskip.py:30: 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
  button = Gtk.Button('Click me')

Fix that, and some more.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Right now they emit warnings:
```
gtk_spreadsheet_sgskip.py:36: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "homogeneous, spacing" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  vbox = Gtk.VBox(False, 8)
gtk_spreadsheet_sgskip.py:39: 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
  label = Gtk.Label('Double click a row to plot the data')
gtk_spreadsheet_sgskip.py:51: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.treeview = Gtk.TreeView(model)
gtk_spreadsheet_sgskip.py:52: DeprecationWarning: Gtk.TreeView.set_rules_hint is deprecated
  self.treeview.set_rules_hint(True)
```
```
pylab_with_gtk_sgskip.py:30: 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
  button = Gtk.Button('Click me')
```

Fix that, and some more.
@dstansby
Copy link
Member

I haven't been around for a bit so not sure what's happening with milestoneing, anyone (including @anntzer) feel free to milestone and merge.

@anntzer anntzer added this to the v3.1 milestone Dec 14, 2018
@anntzer
Copy link
Contributor Author

anntzer commented Dec 14, 2018

Let's just put this in 3.1, there's no hurry anyways.

@anntzer anntzer merged commit 952f8b6 into matplotlib:master Dec 14, 2018
@anntzer anntzer deleted the gtk-examples branch December 14, 2018 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants