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

Fix singleshot timers in wx.#18621

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

Merged
tacaswell merged 1 commit intomatplotlib:masterfromQuLogic:wx-singleshot-timer
Oct 1, 2020

Conversation

QuLogic
Copy link
Member

PR Summary

TimerWx._timer_set_single_shot currently tries to start the timer without interval or any other setting, which is not what this method is supposed to do; it should only modify settings on internal objects. Since single shot mode is fully handled inTimerWx._timer_start, this method is unnecessary.

Fixes#18620.

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • [n/a] New features are documented, with examples if plot related.
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings andpydocstyle<4 and runflake8 --docstring-convention=all).
  • [n/a] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

`TimerWx._timer_set_single_shot` currently tries to start the timerwithout interval or any other setting, which is not what this method issupposed to do; it should only modify settings on internal objects.Since single shot mode is fully handled in `TimerWx._timer_start`, thismethod is unnecessary.
@tacaswelltacaswell merged commitca45dad intomatplotlib:masterOct 1, 2020
@QuLogicQuLogic deleted the wx-singleshot-timer branchOctober 1, 2020 20:06
@gonesurfing
Copy link

Can confirm, this fixes the issue. Thanks!

@tacaswell
Copy link
Member

This is a 3.3 regression, should be backported?

@QuLogic
Copy link
MemberAuthor

Did something else change in how timers worked? That wx code has been there much much longer than 3.3.

@QuLogic
Copy link
MemberAuthor

Ah, looks like#17160 started using the setter on__init__.

@meeseeksdev backport to v3.3.x

@QuLogicQuLogic modified the milestones:v3.4.0,v3.3.3Oct 2, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 2, 2020
QuLogic added a commit that referenced this pull requestOct 2, 2020
…621-on-v3.3.xBackport PR#18621 on branch v3.3.x (Fix singleshot timers in wx.)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dopplershiftdopplershiftdopplershift approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
v3.3.3
Development

Successfully merging this pull request may close these issues.

wx backend assertion error with fig.canvas.timer.start()
4 participants
@QuLogic@gonesurfing@tacaswell@dopplershift

[8]ページ先頭

©2009-2025 Movatter.jp