Re: wxpython: bringing up a dialog box with a button

2006-06-14 Thread John Salerno
jean-michel bain-cornu wrote: > When your button gives an event, wx send two arguments : the object > itself and an event object. So you can't bind directly. Ah, that explains it! Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython: bringing up a dialog box with a button

2006-06-13 Thread jean-michel bain-cornu
John Salerno a écrit : > import wx > class InputForm(wx.Frame): > > def __init__(self, parent=None, id=wx.ID_ANY, title=''): > wx.Frame.__init__(self, parent, id, title) > panel = wx.Panel(self) > btnModal = wx.Button(panel, -1, 'Modal') > dialog = wx.Dialog(sel

wxpython: bringing up a dialog box with a button

2006-06-13 Thread John Salerno
I'm not exactly sure how to call the method ShowModal(). This is what I have so far: -- import wx class InputForm(wx.Frame): def __init__(self, parent=None, id=wx.ID_ANY, title=''): wx.Frame.__init__(self, parent, id, title) panel = wx.Panel(self)