Changing Window Style? (wx.FRAME_FLOAT_ON_PARENT)

Hello, I'd like to toggle a style like wx.FRAME_FLOAT_ON_PARENT dynamically?
Doing it with self.SetWindowStyle(changedstyle) & self.Refresh has no effect - though self.GetWindowStyle reflects the change?
Inevitable to recreate the Window?

Robert,

Robert wrote:

Hello, I'd like to toggle a style like wx.FRAME_FLOAT_ON_PARENT dynamically?
Doing it with self.SetWindowStyle(changedstyle) & self.Refresh has no effect - though self.GetWindowStyle reflects the change?
Inevitable to recreate the Window?
  

What about using pyAUI or AUI?

Werner

Robert,

···

On Jul 30, 8:47 am, Robert <kxrobe...@googlemail.com> wrote:

Hello, I'd like to toggle a style like wx.FRAME_FLOAT_ON_PARENT
dynamically?
Doing it with self.SetWindowStyle(changedstyle) & self.Refresh
has no effect - though self.GetWindowStyle reflects the change?
Inevitable to recreate the Window?

I'm pretty sure you cannot change a frame's style after it has been
initialized and shown. You'd need to destroy it and show a new frame
with the new style. Or you could try what Werner suggested.

- Mike

Mike Driscoll wrote:

Robert,

Hello, I'd like to toggle a style like wx.FRAME_FLOAT_ON_PARENT
dynamically?
Doing it with self.SetWindowStyle(changedstyle) & self.Refresh
has no effect - though self.GetWindowStyle reflects the change?
Inevitable to recreate the Window?

I'm pretty sure you cannot change a frame's style after it has been
initialized and shown. You'd need to destroy it and show a new frame
with the new style.

It depends on the platform, the widget and the style. Some are changeable after the widget has been created, but many can not be.

···

On Jul 30, 8:47 am, Robert <kxrobe...@googlemail.com> wrote:

--
Robin Dunn
Software Craftsman