Mike Driscoll schrieb:
> On Aug 5, 2:15 pm, C M <
cmpyt...@gmail.com> wrote:
>> On Wed, Aug 5, 2009 at 2:29 PM, DomB<
dominic.barraclo...@gmail.com> wrote:
>>> Thank you for the rapid response- is it possible to toggle between
>>> "stay on top" and normal behavior once the frame is up?
>> I don't know. Good question. I suppose you could destroy and
>> recreate the frame with that style, but I'm sure someone will be along
>> to answer if you can just dynamically change the style.
> I can't remember if this topic was just on the list or someone asked
> something similar on IRC, but I think Robin said that it depends on
> the platform. Some will allow changes and some will not. I don't think
> Windows does, so destroying and recreating is the way to go on that.
Just tried with a frame on windows.
Changing on the fly is possible:
import wx
# self is a frame
style = self.GetWindowStyle()
# stay on top
self.SetWindowStyle( style | wx.STAY_ON_TOP )
# normal behaviour again
self.SetWindowStyle( style )
Regards,
Dietmar