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.