git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37585
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
import wx
import wx.lib.stattext as st
import os
import wx
import wx.lib.stattext as st
import os
+ def __init__(self, style=0):
wx.Frame.__init__(self, None, title="wx Active Project",
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.SetBackgroundColour("sky blue")
self.label = st.GenStaticText(p, -1, "wx XXX")
p.SetBackgroundColour("sky blue")
self.label = st.GenStaticText(p, -1, "wx XXX")
app = wx.PySimpleApp()
app.SetAppName("wxprojview")
app.SetVendorName("Robin Dunn")
app = wx.PySimpleApp()
app.SetAppName("wxprojview")
app.SetVendorName("Robin Dunn")
+style = wx.STAY_ON_TOP
+if len(sys.argv) > 1 and sys.argv[1] == 'nostayontop':
+ style=0
+frm = MyFrame(style)
frm.Show()
app.MainLoop()
frm.Show()
app.MainLoop()