Newbie: How to program window -> serial code -> window?



I’m trying to do the following:

  1. Open up a window (Entry) to get filenames
  2. Close the window, and make a system call to an executable with the above filename arguments
  3. Open up a different window when the system call finishes (e.g. a dialog box with different options)

I’m not sure if this is obvious or not.  I tried simply duplicating a code block starting with “use Gtk2 '-init':” and ending with “Gtk2->main;”, with the system call in between, but the first window did not disappear after quit’ing the window, instead hanging around until the second window quit.


Perhaps I shouldn’t quit the windows, just have them both hanging around and show/hide them as needed?  I’m wondering what the paradigm here should be.


Any suggestions greatly appreciated.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]