wxpython不要标题栏

#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()

在这里插入图片描述

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页