It depends if those other widgets, in your case those buttons, are children of another widget.
Usually that will be the case, i.e. the buttons are part of a widget, not stand-alone windows.
In your code snippet above they are not, but then again that is almost certainly not your real code.
Cheers,
_
Bookmarks