GTK+ / Python spawn child window button press
I have been searching the web for 4 days now and I am unable to find an answer to my question. I've scoured the gnome website, but their GTK 3 documentation needs work. To me, it looks like a wall of text and is more of a command reference than actual useful documentation for someone who is learning. Anyways, end of rant.
I'm trying to write a simple program using GTK and Python. It should open a main window with a button. When the button, it should spawn a child window with a label. I cannot for the life of me get it to work. Could someone please help me figure out what I'm doing wrong?? Code:
#!/usr/bin/python |
You have created the window object but you need to call show_all on the new window for it to appear as the first time you called it the window has not been created yet. If it had and was a child of MainWindow then it would show as well
|
All times are GMT -5. The time now is 09:14 AM. |