Bleve,
The wx.Frame and the wx.Panel are only 2 of many controls that are
used as “container” controls to hold other “children” controls. So,
there is no such thing as “converting” one type of control to
another. You simply add the very same children controls to the other
container control in the same manner you would do so the the main
application wx.Frame…
Putting the children controls in a wx.Panel or wx.Window makes the
group of controls “portable”. That is, the Panel or Window can be
put in another container such as a wx.Frame as demonstrated in the
attached app. Later on you might decide to put them in one of
several pages of a wx.Notebook and this can be done very easily once
the controls are made “portable”.
Inserting to many children controls in the app's Frame makes the
code very hard to read and maintain. “Divide and Conquer” every
large task with well-planned and executed code separation and
organization.
Ray
TRY.PY (4.7 KB)