X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1da78b3316c392dd08dac35c14109b422471837..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/misc/wxprojview.py?ds=sidebyside diff --git a/wxPython/misc/wxprojview.py b/wxPython/misc/wxprojview.py index 81abde5c1a..d53a990485 100755 --- a/wxPython/misc/wxprojview.py +++ b/wxPython/misc/wxprojview.py @@ -10,14 +10,15 @@ import wx import wx.lib.stattext as st import os +import sys class MyFrame(wx.Frame): - def __init__(self): + def __init__(self, style=0): wx.Frame.__init__(self, None, title="wx Active Project", - style=wx.FRAME_NO_TASKBAR|wx.STAY_ON_TOP, - name="wxprojview" + style=wx.FRAME_NO_TASKBAR | style + ,name="wxprojview" ) - p = wx.Panel(self)#, style=wx.SIMPLE_BORDER) + p = wx.Panel(self) p.SetBackgroundColour("sky blue") self.label = st.GenStaticText(p, -1, "wx XXX") @@ -104,6 +105,9 @@ class MyFrame(wx.Frame): app = wx.PySimpleApp() app.SetAppName("wxprojview") app.SetVendorName("Robin Dunn") -frm = MyFrame() +style = wx.STAY_ON_TOP +if len(sys.argv) > 1 and sys.argv[1] == 'nostayontop': + style=0 +frm = MyFrame(style) frm.Show() app.MainLoop()