Re: [pygtk] Need help with spawn_async and callback

2011-09-09 Thread Tony Freeman
On RHEL5 I prefer to use Glade to build all the GUI's the project needs. That way I can redesign things if needed without hacking too much in the finished code. On 09/07/2011 02:02 PM, Grant McWilliams wrote: Thanks, Do you find that using Glade is worth the trouble over just hacking it

Re: [pygtk] Need help with spawn_async and callback

2011-09-08 Thread Grant McWilliams
Thanks, Do you find that using Glade is worth the trouble over just hacking it up in gtk directly? I've heard opinions both ways. I'll check over your code. Doing cli programming takes 1/4 the time over gui programming. I'm creating a cli version of my program to satisfy the powers that be while

Re: [pygtk] Need help with spawn_async and callback

2011-09-07 Thread Tony Freeman
Hello Grant, Below is the entire bit of code I was working on at that time. Pay attention to the spawn_async stuff. Good luck! -- Tony #!/usr/bin/python ## THIS IS A GUI FRONT END TO THE adjust_grids.sh ## SCRIPT LOCATED IN

Re: [pygtk] Need help with spawn_async and callback

2011-09-07 Thread Tony Freeman
I should mention that my office is using RHEL5 ... so pygtk and associated are at the 2.10 version. On Wed, Sep 7, 2011 at 10:07 AM, Tony Freeman t0ny.fr33...@gmail.com wrote: Hello Grant, Below is the entire bit of code I was working on at that time.  Pay attention to the spawn_async stuff.

Re: [pygtk] Need help with spawn_async and callback

2011-08-29 Thread Grant McWilliams
Tony Freeman t0ny.fr33man at gmail.com writes: Can you post the whole code anyway for those of us trying to figure out the same thing. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

Re: [pygtk] Need help with spawn_async and callback

2010-07-27 Thread Tony Freeman
Thanks Robert, It took a few days, but I finally figured out how to go about it. I needed to first create a 'channel' to the cstdout file descriptor intiger. Here's what I did initially to get thing working: import pygtk import gtk import gtk.glade import gobject import os import io

Re: [pygtk] Need help with spawn_async and callback

2010-07-26 Thread Robert Schroll
On 07/25/2010 08:46 PM, Tony Freeman wrote: In short: What do I need to do in order to get the text being generated by my child process to show up in the textview? This doesn't answer your question, but have you considered running the child inside a vte.Terminal? Faced with a similar

[pygtk] Need help with spawn_async and callback

2010-07-25 Thread Tony Freeman
I hope someone can help me with this. Problem: I have a window widget (window2) that has a progress bar and a textview. I want to show the output of the child process that I launch inside the textview. Right now when I run the program, window2 pops up totally blank (no widgets displayed at all)