Reposition the button whenever window is resized in wxPython Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

Reposition the button whenever window is resized in wxPython

Post by pikkip »

I am creating a window with two buttons in wxPython. Initially, the window is small. On maximizing its size, the buttons shifts but shows as if there are two buttons instead of one. How can I solve this problem? :?
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Reposition the button whenever window is resized in wxPython

Post by doublemax »

This is a little confusing. You're saying you have two buttons, but they look as two buttons? ;)

If there is some kind of redraw problem, try calling Refresh() after maximize.
Use the source, Luke!
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

Re: Reposition the button whenever window is resized in wxPython

Post by pikkip »

That worked :D
Post Reply