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 » Tue May 30, 2017 8:20 am

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: 14875
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Reposition the button whenever window is resized in wxPython

Post by doublemax » Tue May 30, 2017 5:13 pm

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 » Wed May 31, 2017 3:37 am

That worked :D

Post Reply