2024-04-25 11:43:30 发布
网友
我想知道是否有任何简单的方法弹出帮助(胶粘风格)时,重点放在一个屏幕上的鼠标wx.按钮一两秒钟。 谢谢
我相信你在找^{}。举个例子:
import wx class MyFrame(wx.Frame): def __init__(self, title, *args, **kwargs): super(MyFrame, self).__init__(None, title=title, *args, **kwargs) panel = wx.Panel(self) button = wx.Button(panel, label="Button") tooltip = wx.ToolTip("Try to click this button") button.SetToolTip(tooltip) class MyApp(wx.App): def OnInit(self): self.frame = MyFrame("Example") self.frame.Show() return True MyApp(False).MainLoop()
有some methods可用于控制提示。你知道吗
我相信你在找^{} 。举个例子:
有some methods可用于控制提示。你知道吗
相关问题 更多 >
编程相关推荐