Title: event handlers have different signatures across backends · Issue #8715 · matplotlib/matplotlib · GitHub
Open Graph Title: event handlers have different signatures across backends · Issue #8715 · matplotlib/matplotlib
X Title: event handlers have different signatures across backends · Issue #8715 · matplotlib/matplotlib
Description: FigureCanvas.motion_notify_event and other event handlers have different signatures across backends: lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/matplotlib/backends/backend_gtk.py 321: de...
Open Graph Description: FigureCanvas.motion_notify_event and other event handlers have different signatures across backends: lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/ma...
X Description: FigureCanvas.motion_notify_event and other event handlers have different signatures across backends: lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/ma...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8715
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"event handlers have different signatures across backends","articleBody":"`FigureCanvas.motion_notify_event` and other event handlers have different signatures across backends:\r\n```\r\nlib/matplotlib/backend_bases.py\r\n1893: def motion_notify_event(self, x, y, guiEvent=None):\r\n\r\nlib/matplotlib/backends/backend_gtk.py\r\n321: def motion_notify_event(self, widget, event):\r\n\r\nlib/matplotlib/backends/backend_tkagg.py\r\n386: def motion_notify_event(self, event):\r\n\r\nlib/matplotlib/backends/backend_gtk3.py\r\n263: def motion_notify_event(self, widget, event):\r\n```\r\nNote that the default signature is written in such a way that one can programmatically trigger an event on the canvas *without* having to instantiate a native event object, which may be tricky (yes, you could always mock the event but that's obviously not optimal). It would be preferrable if all backends kept the same signature (which would probably involve breaking backcompat).","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-06-04T07:05:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8715/matplotlib/issues/8715"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ccf3ac75-d6f4-8826-586a-6bb0507aa891 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 998E:144DCD:471780:60527C:6A52787E |
| html-safe-nonce | 4e7bc797ce3dcb4eeb4035babd813d9a4bfc4762b6eb42dd9dfff5082827e03e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OThFOjE0NERDRDo0NzE3ODA6NjA1MjdDOjZBNTI3ODdFIiwidmlzaXRvcl9pZCI6IjQ4MjM1NjA0NTA1OTQ3MzIxNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 84e22fa722816e7b5b0a0cb92e0a88642106181eab53bce485e0043ad62ba651 |
| hovercard-subject-tag | issue:233416416 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/8715/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11e2696d4166cc621e4f54b8d147208ae8b91a7c3de3ee7a12edf6750584c716/matplotlib/matplotlib/issues/8715 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11e2696d4166cc621e4f54b8d147208ae8b91a7c3de3ee7a12edf6750584c716/matplotlib/matplotlib/issues/8715 |
| og:image:alt | FigureCanvas.motion_notify_event and other event handlers have different signatures across backends: lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width