I am interested i writing an own sizer with wxPython.
I derived a class from wxPySizer but didn't have
success. The sizer methods are not called from the
framework. Do I have to connect signals on my own?
If yes, wich ones. Is there a doc how to write own
sizers?
Robin, you told me some days ago that I should
add a wxNotebookSizer to the parent sizer
so the wxNotebook is sized correctly. Will there
be a change so that I can add the wxNotebook
directly?
I am interested i writing an own sizer with wxPython.
I derived a class from wxPySizer but didn't have
success. The sizer methods are not called from the
framework. Do I have to connect signals on my own?
If yes, wich ones. Is there a doc how to write own
sizers?
See wxPython/lib/grids.py for an example.
Robin, you told me some days ago that I should
add a wxNotebookSizer to the parent sizer
so the wxNotebook is sized correctly. Will there
be a change so that I can add the wxNotebook
directly?
You can add the notebook directly if you want. Using the notebook sizer
adds the benefit that the parent sizer will ask the notbook sizer what it's
minimum size should be based on the min sizes of the sizers on each notebook
page. So if you don't use the notebook sizer then the parent sizer will use
some arbitrary value for the notebook's min size.
>
> I am interested i writing an own sizer with wxPython.
> I derived a class from wxPySizer but didn't have
> success. The sizer methods are not called from the
> framework. Do I have to connect signals on my own?
> If yes, wich ones. Is there a doc how to write own
> sizers?
See wxPython/lib/grids.py for an example.
Thanks. Got it running now. Helps to write the method names correct
> Robin, you told me some days ago that I should
> add a wxNotebookSizer to the parent sizer
> so the wxNotebook is sized correctly. Will there
> be a change so that I can add the wxNotebook
> directly?
You can add the notebook directly if you want. Using the notebook sizer
adds the benefit that the parent sizer will ask the notbook sizer what it's
minimum size should be based on the min sizes of the sizers on each notebook
page. So if you don't use the notebook sizer then the parent sizer will use
some arbitrary value for the notebook's min size.
Maybe I don't understand this fully but why can't the parent sizer ask the notebook
and the notebook asks its sizer when it has one?