RequestsModule
This module has functions that generate the request types in version 14 of the protocol. It would be redundant to document it here; check the source code at cvs and the protocol document at http://old.picogui.org/doc/pgui-protocol/pgui-protocol.html - that should be enough. If it isn't, then you probably shouldn't be using the low-level library ;-)
Oh, one thing. By default, the id of the request is equal to the request type (which doesn't matter anyway, since it is usually discarded). If you want your own id, provide it as an argument to the request-building function. The recommended way, for clarity and forward-compatibility, is to explicitly say id=x
, as in, connection.send(requests.getfstyle(id=23))
.
Status: UpToDateStatus (well, this page doesn't really document anything, but the module is up-to-date wrt version 14 of the protocol).