Title: AttributeError: send_request. Did you mean: 'send_event'? · Issue #275 · python-xlib/python-xlib · GitHub
Open Graph Title: AttributeError: send_request. Did you mean: 'send_event'? · Issue #275 · python-xlib/python-xlib
X Title: AttributeError: send_request. Did you mean: 'send_event'? · Issue #275 · python-xlib/python-xlib
Description: I am trying to just move a window, but i get an error: xeyes 524298 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/display.py", line 224, in __getattr__ function = self.display_extension_methods[attr] KeyErr...
Open Graph Description: I am trying to just move a window, but i get an error: xeyes 524298 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/display.py", line 224, in __getattr__ function = sel...
X Description: I am trying to just move a window, but i get an error: xeyes 524298 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/display.py", line 224, in __getattr__ func...
Opengraph URL: https://github.com/python-xlib/python-xlib/issues/275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: send_request. Did you mean: 'send_event'?","articleBody":"I am trying to just move a window, but i get an error:\r\n```\r\nxeyes\r\n524298\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3/dist-packages/Xlib/display.py\", line 224, in __getattr__\r\n function = self.display_extension_methods[attr]\r\nKeyError: 'send_request'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/tnb/PWM/main.py\", line 19, in \u003cmodule\u003e\r\n win.configure(x=123, y=345)\r\n File \"/usr/lib/python3/dist-packages/Xlib/xobject/drawable.py\", line 408, in configure\r\n request.ConfigureWindow(display = self.display,\r\n File \"/usr/lib/python3/dist-packages/Xlib/protocol/rq.py\", line 1349, in __init__\r\n display.send_request(self, onerror is not None)\r\n File \"/usr/lib/python3/dist-packages/Xlib/display.py\", line 227, in __getattr__\r\n raise AttributeError(attr)\r\nAttributeError: send_request. Did you mean: 'send_event'?\r\n```\r\nHeres my code:\r\n```python\r\nfrom Xlib import X\r\nfrom Xlib.display import Display\r\nfrom Xlib import xobject\r\n\r\ndisplay = Display()\r\nscreen = display.screen()\r\nroot = screen.root\r\n# get all windows\r\nfor window in root.query_tree().children:\r\n print(window.get_wm_name())\r\n # get window geometry\r\n geom = window.get_geometry()._data\r\n # check if y \u003c 15\r\n if geom[\"y\"] \u003c 15:\r\n # move window a bit\r\n id = window.id\r\n print(id)\r\n win = xobject.drawable.Window(display, id)\r\n win.configure(x=123, y=345)\r\n```\r\nI think it may be a bug.","author":{"url":"https://github.com/funicat1","@type":"Person","name":"funicat1"},"datePublished":"2024-09-06T12:46:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/275/python-xlib/issues/275"}
| 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:4099c527-bae2-24c7-7b9d-e709fc19b404 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B600:22E260:1A67F32:23AD780:69701F44 |
| html-safe-nonce | ef0542da8e77da5884f0b3a028452a0077616563c991e943e9279e2e871fae62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjAwOjIyRTI2MDoxQTY3RjMyOjIzQUQ3ODA6Njk3MDFGNDQiLCJ2aXNpdG9yX2lkIjoiODQ2OTgyOTgxOTA2NTk2NjQwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ad50309dd47c9a5d887fbe21437624c0023224f0a4b182f188062f9cdc1ebc6 |
| hovercard-subject-tag | issue:2510356462 |
| 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/python-xlib/python-xlib/275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8dba72190b76a0f52a7b2b6cbe21aaeab200618643c0b6765a04e1b2bff4fb2c/python-xlib/python-xlib/issues/275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8dba72190b76a0f52a7b2b6cbe21aaeab200618643c0b6765a04e1b2bff4fb2c/python-xlib/python-xlib/issues/275 |
| og:image:alt | I am trying to just move a window, but i get an error: xeyes 524298 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/display.py", line 224, in __getattr__ function = sel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | funicat1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| go-import | github.com/python-xlib/python-xlib git https://github.com/python-xlib/python-xlib.git |
| octolytics-dimension-user_id | 16151530 |
| octolytics-dimension-user_login | python-xlib |
| octolytics-dimension-repository_id | 47391866 |
| octolytics-dimension-repository_nwo | python-xlib/python-xlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47391866 |
| octolytics-dimension-repository_network_root_nwo | python-xlib/python-xlib |
| 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 | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width