Re: Scope PyQt question

2007-07-26 Thread David Boddie
On Thu Jul 26 18:00:44 CEST 2007, dittonamed wrote: > On Jul 26, 10:15 pm, Stargaming wrote: > > Answering from a non-Qt point of view (ie. I don't know if there were > > cleaner ways using Qt stuff), you have to bind p somewhere not local to > > the function. Any attribute of `self` (that's hop

Re: Scope PyQt question

2007-07-26 Thread dittonamed
On Jul 26, 10:15 pm, Stargaming <[EMAIL PROTECTED]> wrote: > On Thu, 26 Jul 2007 06:41:44 -0700, dittonamed wrote: > > Code pasted below -> > > > Can anyone out there suggest a way to access the object "p" thats > > started in playAudio() from inside the stopAudio()? I need the object > > refer

Re: Scope PyQt question

2007-07-26 Thread Stargaming
On Thu, 26 Jul 2007 06:41:44 -0700, dittonamed wrote: > Code pasted below -> > > Can anyone out there suggest a way to access the object "p" thats > started in playAudio() from inside the stopAudio()? I need the object > reference to use QProcess.kill() on it. The code sample is below. Thanks

Scope PyQt question

2007-07-26 Thread dittonamed
Code pasted below -> Can anyone out there suggest a way to access the object "p" thats started in playAudio() from inside the stopAudio()? I need the object reference to use QProcess.kill() on it. The code sample is below. Thanks to anyone who helps out =) More comments in the code below ---