On Fri, Jun 27, 2008 at 2:38 AM, Anil Roy <[EMAIL PROTECTED]> wrote: > > Hi Guilherme, > > I understood what you have said but, there is some confusion in me, because > i am a biginner.. > > You are saying to have two widgets right, so my question is can we do this > by having a single button in the displsy named as "Browse" and when we click > that ,the file explorer opens ??
Yes, Yes > And does this tkFileDialog.Open returns the filename which is beign > selected, or else how to get the filename being selected including the full > path. It stores it at instance.filename > Can you provide some sample code for this. > I'm not sure if it would help you if I just gave you the code, you should be reading something to start learning Tkinter. http://www.pythonware.com/library/tkinter/introduction/index.htm http://infohost.nmt.edu/tcc/help/pubs/tkinter/index.html http://www.manning.com/grayson/ http://tkinter.unpythonic.net/wiki/ > Thanks a lot > Anil > > > Guilherme Polo wrote: >> >> On Thu, Jun 26, 2008 at 4:24 AM, Anil Roy <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> I need to design a tkinter widget where i should have a browse option >>> button >>> as you see in all windows application to select a file from my machine. >> >> The button is a widget, a Tkinter.Button, and the file browser is >> another widget, tkFileDialog.Open, so they are two different things >> and they are both done, apparently you don't have to design them. >> >>> Also i need to select an integer from some dropdown box. >> >> You would need a combobox, which is not available in the Tkinter >> module but there are alternatives. Tix and Tile provide it, so you >> could install one of them, or you could upgrade to tk 8.5 (python >> 2.6b1 includes it in the Windows build). If you are going to use tile >> or tk 8.5 you will need a wrapper, which is not available in the >> python stdlib but can be found at >> http://gpolo.ath.cx:81/projects/ttk_to_tkinter/code >> >>> How can i implement this... I m donewith the backend python coding.. but >>> i >>> need help for the front end.. >>> >>> please help me... >>> >>> Thanks, >>> Anil Roy >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-enable-load-button-in-python-tkinter-widget-tp18127982p18127982.html >>> Sent from the Python - tkinter-discuss mailing list archive at >>> Nabble.com. >>> >>> _______________________________________________ >>> Tkinter-discuss mailing list >>> Tkinter-discuss@python.org >>> http://mail.python.org/mailman/listinfo/tkinter-discuss >>> >> >> >> >> -- >> -- Guilherme H. Polo Goncalves >> _______________________________________________ >> Tkinter-discuss mailing list >> Tkinter-discuss@python.org >> http://mail.python.org/mailman/listinfo/tkinter-discuss >> >> > > -- > View this message in context: > http://www.nabble.com/How-to-enable-load-button-in-python-tkinter-widget-tp18127982p18148483.html > Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > -- -- Guilherme H. Polo Goncalves _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss