Find text dialog with wxpython

后端 未结 2 891
天命终不由人
天命终不由人 2021-01-24 07:10

Does anyone have a very simple example of using a find dialog with a text component in wxpython?

Thanks in advance.

2条回答
  •  执念已碎
    2021-01-24 07:52

    Use the wiki

    import wx
    
    class MyDialog(wx.Dialog):
        def __init__(self, parent, id, title):
            wx.Dialog.__init__(self, parent, id, title)
    
    class MyApp(wx.App):
        def OnInit(self):
            dia = MyDialog(None, -1, "simpledialog.py")
            dia.ShowModal()
            dia.Destroy()
            return True
    
    app = MyApp(0)
    app.MainLoop()
    

提交回复
热议问题