I’ve attached some example code that demonstrates the problem I’m having.
Without the refresh on EVT_SIZE it causes some of the widgets to be drawn incorrectly on resize. Here’s an example of what it looks like (http://i.stack.imgur.com/tYEF4.png).
If you add a refresh to EVT_SIZE it fixes most of the sizing issues except when you snap the Frame to half of the screen in MS Windows. Here’s an example of what that looks like (http://i.stack.imgur.com/UKTPi.png).
What I can’t figure out is why it keeps drawing the bottomrightPanel incorrectly. It looks like it draws it from the bottom of that panel instead of from the top. If you resize the frame at all it redraws it correctly and give you the behavior you’d expect.
It seems like the growablecolumn is causing the issue but I can’t seem to fix it and keep the behavior I want. I’ve tried calling self.bottomrightPanel.Layout() on resize but that seems to do nothing. I
also tried calling self.bottomrightPanel.Fit() on resize which fixes the issue when you snap the Frame to half of the screen but it screws up
the look of the mainPanel. If anyone out there knows how to fix the problem (without changing the type
of sizer which I’ve already done in my current app) I’d be very appreciative.
Sorry for the double post. I posted it and came back to check it later and it wasn’t there so I posted it again. Apparently there’s more than a little lag time between posting and it showing up. I’m a little new to google groups so I didn’t realize it was quite that long between creating a post and having it show up. I’ve deleted the other post as to not cause clutter and disorganized discussion.
If you think you will be posting to/reading this list sufficiently, I'd
recommend subscribing to the list instead of using Google Groups. You'll
get posts as emails.
On Mon, Jan 6, 2014 at 1:15 PM, James Bunn <jalexbunn@gmail.com> wrote:
Sorry for the double post. I posted it and came back to check it later and
it wasn't there so I posted it again. Apparently there's more than a little
lag time between posting and it showing up. I'm a little new to google
groups
Sorry for the double post. I posted it and came back to check it later
and it wasn't there so I posted it again. Apparently there's more than a
little lag time between posting and it showing up. I'm a little new to
google groups so I didn't realize it was quite that long between
creating a post and having it show up. I've deleted the other post as to
not cause clutter and disorganized discussion.
First-posts are moderated to make sure that you are a real person with a real interest in wxPython, and not a spam-bot or somebody trying to sell something totally unrelated.