What is Nostr?
dave /
npub1tsg…htk4
2023-02-08 05:19:52
in reply to nevent1q…cjrw

dave on Nostr: # 创建一个wxPython程序的窗口 import wx class MyFrame(wx.Frame): """""" def ...

# 创建一个wxPython程序的窗口
import wx

class MyFrame(wx.Frame):
""""""

def __init__(self):
"""Constructor"""
wx.Frame.__init__(self, None, title="My Window")

panel = wx.Panel(self)
btn = wx.Button(panel, label="Close")
btn.Bind(wx.EVT_BUTTON, self.onClose)

def onClose(self, event):
"""Close the frame"""
self.Close()

if __name__ == "__main__":
app = wx.App(False)
frame = MyFrame()
frame.Show()
app.MainLoop()
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4