[tomboy-list] direct note access
Sandy Armstrong
sanfordarmstrong at gmail.com
Thu Apr 14 15:55:18 PDT 2011
2011/4/14 François Pinard <pinard at iro.umontreal.ca>:
> Le 2011-04-14 13:12, Sandy Armstrong a écrit :
>
>> You could have your Python script run:
>> tomboy --search "some phrase"
>
> Nice, thanks for the tip.
>
> By the way, is there something in the Dbus API that would force the
> contents of the search field, in a similar way? Currently, I use:
>
>
> [...]
> import dbus
> self.tomboy = dbus.Interface(
> dbus.SessionBus().get_object(
> 'org.gnome.Tomboy',
> '/org/gnome/Tomboy/RemoteControl'),
> 'org.gnome.Tomboy.RemoteControl')
>
> [...]
> self.tomboy.DisplaySearch()
> [...]
>
>
> which opens the Search window, with a blanked search field. But I would
> like initializing it to some known contents, preferring DBus over
> os.system if possible.
DisplaySearchWithText("some text") should work.
http://git.gnome.org/browse/tomboy/tree/Tomboy/RemoteControl.cs#n182
Sandy
More information about the Tomboy-list
mailing list