#coding:utf-8

from wx import *

class Trans(Frame):
    def __init__(self, parent, id, title):
        #Frame.__init__(self, parent, id, title, size=(700, 500), style=DEFAULT_FRAME_STYLE | STAY_ON_TOP)
#frame = wx.Frame(None,style=0)  
#Frame.__init__(self, parent, id, title, size=(700, 500), style=DEFAULT_FRAME_STYLE | STAY_ON_TOP)
        Frame.__init__(self, parent, id, title, size=(700, 500), style=STAY_ON_TOP)
        self.Text = TextCtrl(self, style=TE_MULTILINE | HSCROLL,size=(700, 500))
        self.Text.SetBackgroundColour('Black'), self.Text.SetForegroundColour('Steel Blue')
        self.SetTransparent(200) #设置透明
        self.Show()

app = App()
frm1=Trans(None, 1, "Transparent Window")
frm1.MoveXY(300,300)
app.MainLoop()

wxpython不要标题栏

相关文章:

  • 2022-03-14
  • 2022-12-23
  • 2021-10-07
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2021-12-20
  • 2021-12-14
  • 2021-07-01
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案