ironfistchamp
November 29th, 2006, 03:08 PM
Hey all
I have taken the plunge into GTK programming with Python. It looks incredibly complex and I am hoping I take to it as I did with Python Console programming. My first problem is this. I am trying to simplest thing. I use Glade to create one window with a label in the middle. I have that working fine but I can't get the window to destroy correctly. Reading a tutorial I have to set the event in the properties window but mine seems different one from the version in the tute. Anyway I set the handle for the GTKWidget > destroy-event. I link this handle to call gtk.main_quit. When closing the window this just leaves the program running just with no window. However if I call the exact same function from a button it works fine. What exactly am I doing wrong?
Any help would be great
Thanks
Ironfistchamp
I have taken the plunge into GTK programming with Python. It looks incredibly complex and I am hoping I take to it as I did with Python Console programming. My first problem is this. I am trying to simplest thing. I use Glade to create one window with a label in the middle. I have that working fine but I can't get the window to destroy correctly. Reading a tutorial I have to set the event in the properties window but mine seems different one from the version in the tute. Anyway I set the handle for the GTKWidget > destroy-event. I link this handle to call gtk.main_quit. When closing the window this just leaves the program running just with no window. However if I call the exact same function from a button it works fine. What exactly am I doing wrong?
Any help would be great
Thanks
Ironfistchamp