Re: [gamin] python binding question
- From: Narayan Desai <desai mcs anl gov>
- To: veillard redhat com
- Cc: gamin-list gnome org
- Subject: Re: [gamin] python binding question
- Date: Sun, 06 Feb 2005 09:08:25 -0600
>>>>> "Daniel" == Daniel Veillard <veillard redhat com> writes:
Daniel> Keep the same callback, but pass a different data:
Daniel> def watch_directory(self, directory, callback, data =
Daniel> None): def watch_file(self, file, callback, data =
Daniel> None):
Daniel> and make sure to define an optional arg to your callback,
Daniel> that arg is an even simpler version of your ID.
That will work great. Sorry for the silly question.
-nld
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]