Adding a top-level Widget

When the user clicks on a button of a top-level 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 application. This happens in this way: