转载于 https://blog.csdn.net/igolang/article/details/7872957 
#!/usr/bin/env python
#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)
self.Text = TextCtrl(self, style=TE_MULTILINE | HSCROLL)
self.Text.SetBackgroundColour('Black'), self.Text.SetForegroundColour('Steel Blue')
self.SetTransparent(200) #设置透明
self.Show()
app = App()
Trans(None, 1, "Transparent Window")
app.MainLoop()

发表评论

电子邮件地址不会被公开。 必填项已用*标注