except python xlib manual seem have no doc or tutorial on web.
for example I want to know the method and property under display.Display.screen() like screen.root.grab_key(i saw them in tinywm py code) so I read python-xlib doc ,but python-xlib doc content is too few,even it not mention about any api reference
If you try pydoc or dir(), help() this is the output:
uv run python -m pydoc Xlib.display.Display.screen
Help on function screen in Xlib.display.Display:
Xlib.display.Display.screen = screen(self, sno=None)
help(Display.screen):
Help on function screen in module Xlib.display:
screen(self, sno=None)
Where are the method and property go (like screen.root and screen.root.grab_key...)?
except python xlib manual seem have no doc or tutorial on web.
for example I want to know the method and property under
display.Display.screen()likescreen.root.grab_key(i saw them in tinywm py code) so I read python-xlib doc ,but python-xlib doc content is too few,even it not mention about any api referenceIf you try
pydocordir(),help()this is the output:uv run python -m pydoc Xlib.display.Display.screenhelp(Display.screen):Where are the method and property go (like
screen.rootandscreen.root.grab_key...)?