flexGridsizer clarification

Maybe even Clear() or DeleteWindows(). You can also use the method Detach(), so that you detach an item from the sizer without destroying the item.

···

-----Original message-----
From: C M
Sent: 02.08.2013, 05:29
To: wxPython-users@googlegroups.com
Subject: [wxPython-users] flexGridsizer clarification

(wx2.8.10, winXP)

I have a sizer situation like so:

------- MainboxSizer (VERTICAL)
    --------MainFlexGridSizer
                  A B
                  C D
                  E [F1 F2]
                  G H

The letters are widgets, the brackets represent another flexGridSizer
within MainFlexGridSizer.

Question: If I Destroy() widgets E, F1, and F2, should that entire
"row" now functionally disappear from MainFlexGridSizer? So that it
would look like?:

------- MainboxSizer (VERTICAL)
    --------MainFlexGridSizer
                  A B
                  C D
                  G H

Because it seems like what I am getting is

------- MainboxSizer (VERTICAL)
    --------MainFlexGridSizer
                  A B
                  C D
                          G
                  H

And that's not what I want. Do I have to explicitly get rid of the
smaller flexGridSizer? I tried Destroy() on it, but I get an
unhandled exception in Boa.

Thanks

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.