0

Hi everyone
What i am doing now is creating a program that the user can change the way buttons look half way through. My problem is i couldnt work out how to update the wx.Button's style while the program is running. I was wondering if anyone could help me for this.

Thanks!

2
Contributors
2
Replies
4
Views
8 Years
Discussion Span
Last Post by Paul Thompson
0

Never mind i have found out the answer to my question. What i wanted to do was change a style of a button/TextCtrl/ListBox/Frame mid way through my program. I found out i can do this with:

#Change a panel for example
self.panel.SetWindowStyleFlag(self.panel.GetWindowStyleFlag()|STYLE TO ADD)
#This will add all the ones already there as well as the other one you add on.

Thanks for trying, i will mark this as solved now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.