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

[Sprint] macosx backend doesn't respond to key_press_events (sometimes) #2120

Closed
@mrterry

Description

@mrterry

For some combinations of virtualenvs, distributions, python version, and virtual environments, the macosx backend does not respond tokey_press_events.

I can confirm failures with mpl 1.2.1, OSX 10.8.3, anaconda v1.4.6.
From the thread on matplotlib-users, Scott Lasley has failures with:
mpl 1.2.1/1.3.0r2, OSX 10.8, python3.3.2 (framework python.org in virutalenvs)
but
mpl 1.4.x not installed in a virtualenv works.

The following script ought to respond to key_press_events.

import pylab as pltplt.switch_backend('macosx')# plt.switch_backend('tkAgg')def print_event(event):    print eventfig = plt.figure()fig.canvas.mpl_connect('key_press_event', print_event)plt.show()

@mdboom edit: Adding "sprint" to the title, since I overheard a lot of work being done on this there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp