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!

What do you exactly want to do?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.