Skip to content

waitforbuttonpress in Linux #17616

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

Closed
thomas-haslwanter opened this issue Jun 11, 2020 · 1 comment
Closed

waitforbuttonpress in Linux #17616

thomas-haslwanter opened this issue Jun 11, 2020 · 1 comment
Labels
Milestone

Comments

@thomas-haslwanter
Copy link

Bug report

Bug summary

On Linux, the command 'plt.waitforbuttonpress' leads on systems with a qt5 backend to the warning

QTimer::singleShot: Timers cannot have negative timeouts

Code for reproduction

# Paste your code here
import matplotlib.pyplot as plt
plt.waitforbuttonpress()

Actual outcome

Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.waitforbuttonpress()
QTimer::singleShot: Timers cannot have negative timeouts
True
>>> ```

**Expected outcome**

no warning

**Matplotlib version**
<!--Please specify your platform and versions of the relevant libraries you are using:-->
  * Operating system: Linux
  * Matplotlib version: 3.1.1
  * Matplotlib backend (`print(matplotlib.get_backend())`):Qt5Agg
  * Python version: 3.7.4
  * Jupyter version (if applicable):
  * Other libraries: 

<!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda-->
<!--If you installed from conda, please specify which channel you used if not the default-->

@QuLogic
Copy link
Member

QuLogic commented Jun 11, 2020

Fixed by #17618.

@QuLogic QuLogic closed this as completed Jun 11, 2020
@QuLogic QuLogic added this to the v3.3.0 milestone Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants