#π X in python without dependencies
10 messages Β· Page 1 of 1 (latest)
@indigo iris
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
it is literally impossible to interface with nearly anything without using imports
It might be possible to interact with it via the standard library with os/sys/ctypes or similar, but I would strongly recommend against it if you can avoid it
In practice Python is only a good language if you have libraries well suited to solve the problem you're trying to tackle
Maybe you should describe what you intend when you say "interface with a running x.org server"?
you can surely make a TCP/IP connection, and send bytes to it and receive bytes from it. But what would be the point? You'd have to puzzle out what bytes to send, which I assume is complex and unintuitive -- the X protocol goes back to the 1980s
It's not that bad, there is just a long list of things to implement. It's one of things that is difficult by number of things, rather than difficulty of those things. https://x.org/releases/X11R7.7/doc/xproto/x11protocol.html#Protocol_Formats
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.