Re: [Tutor] python connect() function

2012-04-12 Thread Pierre Barthelemy
sorry, gobject comes from the PyGTK package. On Thu, Apr 12, 2012 at 6:32 PM, Alan Gauld wrote: > On 12/04/12 16:42, Pierre Barthelemy wrote: > >> Thanks for the fast reply. I went a bit deeper into the code and i found >> where my problem was. The connect function comes from gobject, and the >

Re: [Tutor] python connect() function

2012-04-12 Thread Alan Gauld
On 12/04/12 16:42, Pierre Barthelemy wrote: Thanks for the fast reply. I went a bit deeper into the code and i found where my problem was. The connect function comes from gobject, and the gobject.connect function accepts extra arguments that are passed to the connected function. So i can solve my

Re: [Tutor] python connect() function

2012-04-12 Thread Pierre Barthelemy
Thanks for the fast reply. I went a bit deeper into the code and i found where my problem was. The connect function comes from gobject, and the gobject.connect function accepts extra arguments that are passed to the connected function. So i can solve my problem by: data.connect('new_data_point', a

Re: [Tutor] python connect() function

2012-04-12 Thread Peter Otten
Pierre Barthelemy wrote: > I have a question about event handling and the use of the connect > function. I have a data object, that contains a series of signals, one > being "new_data_point" . > > When i want to plot the data, i also connect the "new_data_point" event to > the function "analysis_

Re: [Tutor] python connect() function

2012-04-11 Thread Walter Prins
Hi Pierre, On 11 April 2012 15:49, Pierre Barthelemy wrote: > I have a question about event handling and the use of the connect > function. I have a data object, that contains a series of signals, one > being "new_data_point" . Where does this "connect function" come from and how does it work?

[Tutor] python connect() function

2012-04-11 Thread Pierre Barthelemy
Hello, I have a question about event handling and the use of the connect function. I have a data object, that contains a series of signals, one being "new_data_point" . When i want to plot the data, i also connect the "new_data_point" event to the function "analysis_client.update_plot". I therefo