File Manager in Tkinter
Wed Aug 11 00:01:10 CEST 2010
On Tue, 10 Aug 2010 14:51:14 -0700 (PDT), Jeff Hobbs
<jeff.hobbs at gmail.com> wrote:
>On Aug 10, 9:43 am, John wrote:
>> On Tue, 10 Aug 2010 09:20:31 -0700 (PDT), Jeff Hobbs
>> <jeff.ho... at gmail.com> wrote:
>> >On Aug 9, 9:53 pm, John wrote:
>> >> As a learning exercise in Tkinter I htought about making a very simple
>> >> and basic file manager for my own use. I tried searching google for
>> >> any sample project and could not find anything. Not exactly sure how
>> >> to start I tought I could ask here?
>> >> I thought about making two listboxes one to list folders only the
>> >> other files inside. I tried to make one listbox first but did not know
>> >> how to list folders only.
>> >Filter with os.path.isdir()
>> >> Is there a way to list folders with images?
>> >> Any suggestions or help how to proced would be appreciated.
>> >If you are using a Tkinter with Ttk (Tk 8.5), then use the treeview
>> >For more advanced needs, there is a Tk extension called tktreectrl
>> >that does some very cool views and has lots of controls:
>> My python is version 2.6.5. Would you recomend I upgrade and if yes
>> to which version?
>The version of python really isn't tightly coupled to the version of
>Tk, it is the configuration of how that python is built. ActivePython
>builds with Tk 8.5, so if you are using that, and it is < v3.1 (where
>ttk is in the core), then just do:
> pypm install pyttk
>which will install the wrapper you need for Ttk into v2.6 or 2.7
>python. You need to make sure that you have Tk 8.5 (Tkinter.TkVersion
>>= 8.5) for ttk to work (though not technically true, the 8.4 tile
>version has subtle differences). The core python distro is still
>using the older Tk 8.4 in stock installers iiuc.
My version is from python.org can I upgrade my version to 8.5?
tia for all the help much appreciated.
More information about the Python-list