You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/dcoppython/test/README-server

20 lines
583 B

The file server.py contains an example of using the DCOP bindings to run a DCOP server in Python.
Run python server.py, then in another console:
[julian] julian$ dcop `dcop | grep petshop`
qt
parrot
[julian] julian$ dcop `dcop | grep petshop` parrot
TQCStringList interfaces()
TQCStringList functions()
TQString squawk(TQString)
void setAge(int)
int age()
[julian] julian$ dcop `dcop | grep petshop` parrot setAge 5
[julian] julian$ dcop petshop-29530 parrot squawk 'How many volts for a vrooom?'
This parrot, 5 months old, squawks: How many volts for a vrooom?
[julian] julian$