views:

27

answers:

3

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

Thanks in advance.

A: 

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()
razpeitia
A: 

You could check stani's python editor code. The GUI is wxpython and has a plugin for finding files containing a given text at different deepness of the directroy tree.

You could get a good hint from there. In any case it is not an wx.Dialog.

joaquin
A: 

See the Editra Control Library

Steven Sproat