Hi!
I agree that your code looks a bit strange. I attach my (modified) version
of your code. Works fine for me.
The problem with your code was:
1) You use wrong parent for TextCtrl (frame, not panel)
2) You don't use any sizers.
Keep in mind that all controls are kind of "stupid" in regards to it's size.
They don't have an idea of how and then it must be changed. Thus the
separate "beast" (sizers) are invented for controlling item's sizes.
The only exception I know is then frame window contains a single child. In
that situation frame window resize it's child to fill all the frame's space.
Except this special case sizers are "must have".
Vladimir Ignatov
test.py (792 Bytes)