[Tkinter-discuss] How to enable load button in python-tkinter widget

Anil Roy yorlina007 at gmail.com
Fri Jun 27 07:38:00 CEST 2008


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 ??
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.
Can you provide some sample code for this.

Thanks a lot
Anil


Guilherme Polo wrote:
> 
> On Thu, Jun 26, 2008 at 4:24 AM, Anil Roy <yorlina007 at gmail.com> 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 at python.org
>> http://mail.python.org/mailman/listinfo/tkinter-discuss
>>
> 
> 
> 
> -- 
> -- Guilherme H. Polo Goncalves
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at 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.



More information about the Tkinter-discuss mailing list