dynamic derivation?

Innumerable. Just as a start, dialogs are top level windows, displayed
independently of other dialogs or frames, while a panel is a child
pane.

You want to create your class as a subclass of wx.Panel. If you need
to display it in a dialog, create a dialog, create one of your panels
as a child of the dialog, and show the dialog.

···

On 1/9/07, f rom <etaoinbe@yahoo.com> wrote:

following code is illegal:

if __name__ == "__main__":
    class my_dialog(wx.Dialog):
else:
    class my_dialog(wx.Panel):

How can I achieve this dynamic derivation in another way ?

I have discovered that wx.Dialog cannot be used inside a Panel (it jumps outside the boundaries of the panel) but on the other hand a Panel requires a parent.

What other differences are there between those two parent classes ?