Re: python coding problem

2009-08-12 Thread Jim Tittsler
On 2009-08-12 21:57, Barry Marchant wrote: Thanks for replies. Putting the ampersand in the 3rd line thus "qiv %s" % self.filew.get_filename() did the trick You may want to investigate the subprocess module, which provides a lot more functionality than os.system() http://docs.python.org/l

Re: python coding problem

2009-08-12 Thread Barry Marchant
Thanks for replies. Putting the ampersand in the 3rd line thus "qiv %s" % self.filew.get_filename() did the trick The exercise is to persuade a file selector to display images. I'm learning. Barry --- Hadley Rich wrote: On Wed, 2009-08-12 at 20:42 +1200

Re: python coding problem

2009-08-12 Thread Hadley Rich
On Wed, 2009-08-12 at 20:42 +1200, Barry Marchant wrote: > My problem is that the python code hangs until the image (qiv) is > killed whereas I wish the image to stay displayed while the python app > continues running. Without knowing what you are trying to do, adding an ampersand to the end of

Re: python coding problem

2009-08-12 Thread Daniel Hill
Have you tried running it in another thread? http://linuxgazette.net/107/pai.html > Hi python experts > > After lots of suggestions I have as last tried programming in python. > I have the following code snippet which when called displays a > selected image using qiv. > > def file_ok_sel(self,