wxNotebook

Hi all!

How I can correct take page from wxNotebook? I want get page from
wxNotebook and show it in separate window and back. When I just get it and
try reparent it(before RemovePage), program crash. When I try reparent it
after RemovePage it work, but I have GTK warnings on console like this:

Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkContainer'

Gtk-CRITICAL **: file gtkcontainer.c: line 726 (gtk_container_remove):
assertion `container != NULL' failed.

I am not sure this code will work properly in future.

python 2.2.2
wxPython 2.3.4.2
gtk 1.2.10

ยทยทยท

--
With best regards,
Alexander I. Evseev