import wx

class Dialog(wx.Frame):
    def __init__(self, parent):
        wx.Frame.__init__(self, parent)
        panel = wx.Panel(self)

        self.lst = wx.ListCtrl(panel)
        self.lst.Append(["Hello"])
        self.lst.Append(["There"])

        self.lst.Select(0)


app = wx.App()

# Make second frame w/textctrl to make sure modality works; 
# we shouldn't be able to do anything here to the textctrl
f = wx.Frame(None, title="no")
wx.TextCtrl(f, wx.ID_ANY)
f.Show()

dlg = Dialog(f)
dlg.MakeModal(True)
dlg.Show()
app.MainLoop()
dlg.Destroy()
