You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
KeyError: 'send_request'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tnb/PWM/main.py", line 19, in <module>
win.configure(x=123, y=345)
File "/usr/lib/python3/dist-packages/Xlib/xobject/drawable.py", line 408, in configure
request.ConfigureWindow(display = self.display,
File "/usr/lib/python3/dist-packages/Xlib/protocol/rq.py", line 1349, in __init__
display.send_request(self, onerror is not None)
File "/usr/lib/python3/dist-packages/Xlib/display.py", line 227, in __getattr__
raise AttributeError(attr)
AttributeError: send_request. Did you mean: 'send_event'?
Heres my code:
fromXlibimportXfromXlib.displayimportDisplayfromXlibimportxobjectdisplay=Display()
screen=display.screen()
root=screen.root# get all windowsforwindowinroot.query_tree().children:
print(window.get_wm_name())
# get window geometrygeom=window.get_geometry()._data# check if y < 15ifgeom["y"] <15:
# move window a bitid=window.idprint(id)
win=xobject.drawable.Window(display, id)
win.configure(x=123, y=345)
I think it may be a bug.
The text was updated successfully, but these errors were encountered:
I am trying to just move a window, but i get an error:
Heres my code:
I think it may be a bug.
The text was updated successfully, but these errors were encountered: