Howdy y'all,
I am trying to emulate a window layout not unlike Tkinter's packing mechanism. I am using Sizers for this, but keep on running into problems, so I'm wondering if what I want is possible at all. Here's a short description:
Let's say we have a frame f1 with three buttons A, B and C, in a horizontal row. There's also a frame f2 with three buttons 1, 2 and 3, tiled vertically. f1's buttons have f1 as parent, and f2's have f2 as parent. What I intend to do is make f2 the main frame, and add f1 to it as a subframe. So, the final window would roughly look like this:
button 1 (long)
button 2 (long)
button 3 (long)
buttons A, B and C in a row
I can easily do this if I use sizers properly. That is, 1, 2 and 3 go in one sizer, A, B and C in another, one sizer is added to the other, and all buttons have the same frame as their parent. This is how the examples in the demo seem to do it.
However, I would like to do this in the way described above, with two frames that are both parents to the buttons they contain, and they both have sizers. Is that possible? As said, I would like to emulate the Tkinter way of doing this, with frames added to frames.
Sorry if this is unclear. I'd post example code, but everything I tried so far yields the wrong layout and/or crashes the interpreter.
Thanks,