Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

tkFileDialog question

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


mmitchell at transparent

Nov 13, 2009, 6:32 AM

Post #1 of 1 (109 views)
Permalink
tkFileDialog question

Hi,

This is my first attempt to write a script with any kind of gui. All I
need the script to do is ask the user for a directory and then do stuff
with the files in that directory. I used tkFileDialog.askdirectory().
It works great but it pops up an empty tk window. Is there any way to
prevent the empty tk window from popping up? Here's the code:


import tkFileDialog

answer = tkFileDialog.askdirectory()

if answer is not '':
#do stuff

Thanks!
Matt
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.