From 0a898969d773348cbe125eda6d4c64762a5edf1a Mon Sep 17 00:00:00 2001 From: Tobi Date: Thu, 4 Nov 2021 11:15:30 +0100 Subject: [PATCH] Update tutorial.rst --- doc/tutorial.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.rst b/doc/tutorial.rst index 7474de3..de4f97d 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -154,15 +154,17 @@ To see the API of a specific proxy object, use help():: To call a method:: - dev.Disconnect() + dev.foo() + +By passing "timeout" as a keyword argument, the method will abort with a gi.repository.GLib.Error error if the proxy object doesn't answer within the specified time in seconds. To read a property:: - print(dev.Autoconnect) + print(dev.bar) To set a property:: - dev.Autoconnect = True + dev.bar = True .. _signal.connect: