Hi, I would like to implement a button "New" that would work the same as File>New in most applications - that is: resets all the labels, treeviews, etc. to the original state.
Thank you, Tomas
Hi, I would like to implement a button "New" that would work the same as File>New in most applications - that is: resets all the labels, treeviews, etc. to the original state.
Thank you, Tomas
The widgets don't remember their original state; you have to set them all back one by one. Give labels their original text, clear the tree views by setting their model to None
.
Perhaps it is better to destroy your window and rebuild it from your Glade file if you have one?