<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hello Guys,<BR>
&nbsp;<BR>
I'm using python to connect to DBus and receive signals from the bus. At the moment&nbsp;I have the signal trigger a standard function within my application, using syntax like this:<BR>
&nbsp;<BR><I><FONT size=2>
myinterface</I>.connect_to_signal(</FONT><I><FONT face="" color=#00aa00 size=2>'SignalNake'</I></FONT><FONT face="" size=2>, <I>MyFunction</I>)</FONT><BR>
<FONT face="" size=2></FONT>&nbsp;<BR>
<FONT face="" size=2>What I'd like to do, ideally, is have the signal start a thread, passing its arguments into the init method for the thread as its quite plausible the signal can be sent quite regularly and the resulting process quite slow, so putting them in threads makes it all a little better.</FONT><BR>
<FONT face="" size=2></FONT>&nbsp;<BR>
<FONT face="" size=2>Any ideas on how to achieve this, can i simply do something like:</FONT><BR>
<FONT face="" size=2></FONT>&nbsp;<BR>
<FONT face="" size=2>myinterface.connect_to_signal(<I><FONT face="" color=#00aa00 size=2>'SignalNake'</I></FONT><FONT face="" size=2>, <I>MyFunction().start()</I>)</FONT></FONT><BR>
<FONT face="" size=2></FONT>&nbsp;<BR>
<FONT face="" size=2>I'd be interested to hear your thoughts guys,</FONT><BR>
<FONT face="" size=2></FONT>&nbsp;<BR>
<FONT face="" size=2>Rob<BR></FONT><br /><hr />Are you the Quizmaster?  <a href='http://specials.uk.msn.com/brainbattle' target='_new'>Play BrainBattle with a friend now! </a></body>
</html>