python 透明弹窗wx.Frame

python 透明弹窗wx.Frame_第1张图片

wx.FULLSCREEN_NOSTATUSBAR菜单栏中不显示弹窗
wx.TE_READONLY文本只读,光标不会定位在上面
# -- coding: utf-8 --
import win32gui
import wx

# from test0523.TopWindow import showTop2


class MyToast(wx.Frame):
    def __init__(self, value,toast_width,toast_height,toast_closetime):
        wx.Frame.__init__(self, parent=None, title=value, size=(toast_width,toast_height),style=wx.NO_BORDER | wx.STAY_ON_TOP|wx.FULLSCREEN_NOSTATUSBAR)
        self.SetTransparent(0)
        self.panel = wx.Panel(self, id=-1, pos=(0, 0), size=(toast_width, toast_height), style=wx.NO_BORDER)
        self.path_text = wx.TextCtrl(self.panel,value=value, size=(toast_width, toast_height),style = wx.NO_BORDER|wx.TE_CENTER|wx.TE_READONLY)
        self.SetSize(toast_width, toast_height)
        self.

你可能感兴趣的:(python,开发语言)