Adding a toplevel widget

When the user clicks on a button of a toplevel widget (a Frame or a Dialog), the method “add_toplevel_object” of wxGladeFrame is called: this is responsible for the addition of the widget to the app. This happens in this way: