I have a GTK python program I am developing. I need to change the look of the window based on the type of activity the user is doing. I'm using a Gtk.Grid() object that I was planning on just calling widget.hide() on the things I need to appear and widget2.show() on the ones I need to show for the change. I've never done anything like this, and was experimenting around.
An example of the GUI interface is this
______________________
| Label1 | Button |
| Label2 | |
| Label3 | |
______________________
When I click on button, calls an iterable object I have created that calls Label1.hide(), etc. The interface is an horizontal Gtk.Box() with a grid for the labels on the left and then the button object on the right.
When I get to the last Label3 and then Click the "Button" button, the program unexpectedly exits with this as output:
Floating point exception
There is no traceback. I think it is coming from GTK itself. I am using GTK3 which uses gobject introspection.
What might be causing the exception and is there a way around?
I believe I can get around this by doing a Label4.show() before getting ride of the last (Label3) object. I'm just curious what is the reason in the first place.
I have done a lot of Googling around, but nothing seems to address this issue.
Thanks,
Narnie