[pygtk] Yet another threads problem

Adolfo González Blázquez listas at infinicode.org
Fri Feb 15 22:05:43 WST 2008


Hello,

I'm writing a little app that needs 2 windows, a main window, and
another for entering data. I'm writing it using Glade, so both windows
are defined in one glade file. The second one, emulates a entry dialog,
and is modal.

My problem is that i want the second window displayed when i click in a
button in the main window, and then, when i press "Close" in the second
window, get the text and do some things, and update the main window
status bar.

Here's a screencast of what i'm doing:
http://www.infinicode.org/code/out.ogg

What it was supposed to do is:
- Open the add window
- Enter the text and click close
- The add window closes
- In the main window status bar appears "Conectando..."
- The status bar changes to "Conectado!"
- A error dialog appers

Relevant code here:
http://pastebin.com/f6bf4e71b


Thanks in advance for any help

-- adolfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20080215/36997017/attachment.pgp


More information about the pygtk mailing list