Hey Guys,
Sorry for the lenght of the subject, couldnt really capture it in less
words.
Busy working on a Gtk project, need some "popup" windows, having some
problems. Here's the setup:
The User interface is produced by Glade, and im loading it using the
standard gtk.glade.XML("ui.glade")
This is the problem:
-Main Window (toplevel) has a button to open an About dialog.
-About dialog shows up fine, and I can close it by clicking "x" in the
Windowframe. (Close button doesnt work.. cant get the Close button to work.)
-When the about dialog is gone, the program runs fine again.
-upon clicking the About button again, it gives me the following:
AttributeError: 'NoneType' object has no attibute 'show_all'
The problem I cant grasp here is, its already ran this code the first time
that I opened the About Dialog.
And i "Close" the window using aboutWindow.hide_all(), which would lead me
to assume I could show it again using show_all()?
So something changes between the window showing the first time, and before
calling it for the 2nd time.
Or if somebody could point me to a Tutorial on HOW to stucture your
gtk.main() and toplevel windows etc.. that might let me teach myself?
Im really kinda lost, because I have a preferences window (toplevel) done
out & implemented, and its doing the exact same...
Hope i didnt word it too confusing, -Harry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---