Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Small fixes to gtk3 examples.#10679

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
anntzer wants to merge1 commit intomatplotlib:masterfromanntzer:gtk3examples

Conversation

anntzer
Copy link
Contributor

  • Move import of gi.repository.Gtkafter matplotlib: this avoids the
    warning "Gtk was imported without specifying a version first.", as
    Matplotlib itself callsgi.require_version("Gtk", "3.0"). The
    examples could be modified to also include the call to require_version
    but I'd rather decrease line noise as much as possible.

  • Make mpl_with_glade_316_sgskip work even when the example is not run
    from its folder (by looking for the glade file next to the source file).

Milestoning to 3.0 as these files were already modified during the py3fication.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

- Move import of gi.repository.Gtk *after* matplotlib: this avoids thewarning "Gtk was imported without specifying a version first.", asMatplotlib itself calls `gi.require_version("Gtk", "3.0")`.  Theexamples could be modified to also include the call to require_versionbut I'd rather decrease line noise as much as possible.- Make mpl_with_glade_316_sgskip work even when the example is not runfrom its folder (by looking for the glade file next to the source file).
@anntzeranntzer added this to thev3.0 milestoneMar 5, 2018
@QuLogic
Copy link
Member

Sort of duplicated with#10426.

@anntzer
Copy link
ContributorAuthor

No worries, that one can go in first then I can update or close this one. (Or please just close this if it is totally redundant.)

@anntzer
Copy link
ContributorAuthor

Effectively overridden by#10426.

@anntzeranntzer closed thisMar 5, 2018
@anntzeranntzer deleted the gtk3examples branchMarch 5, 2018 04:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
v3.0.0
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp