Hello Alan, What i want is i just need a file picker to chooose the file and display the file name in the text box. I need to open about 4 files like that. That is the front end work. In the back end i am making a list variable to which i have to send the information about the selected files. And that list is read and files are opened in another script. So, i guess i need to improve the code more to choose the file, display just the file information and may be send whole file path to the list. I need to work more on that i guess.....Thanks for reminding me...
-Varsha On Nov 18, 2007 1:03 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > I note that you got it wotking but just to clarify... > > > I am actually calling the binding function and then writing it > > into the text value... > > > class ScrolledWindow(wx.Frame): > > def __init__(self, parent, id, title): > > txt1 = wx.TextCtrl(panel, -1, pos=(30, 100), size=(150, 20)) > > name = self.Bind(wx.EVT_BUTTON, self.OnOpen, button11) > > txt1.write(name) > > The Bind function does not execute the handler method > it simply registers it within wxPython for future use when > the button event is triggered. The return value from Bind > is not the return value of the method being bound. > > The method only gets called when the button is pressed, > thats why you have to put the write() call in the event > handler itself. > > HTH, > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.freenetpages.co.uk/hp/alan.gauld > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor