Entry
how would i make something that asked for a directory and saved it as a variable?
Oct 1st, 2009 04:08
jsieoa gide, Scott Mandarich, John Withers, chase cobb,
i saw someone ask this so here it is. its so simple its really not
worth typing, but you have to start somewhere
import os
x = raw_input("Enter your Directory")
print x
---
Since this is in the Tk area, it is highly unlikely this is what was
intended. While technically correct, I suspect what the supplicant
actually wanted was:
from tkFileDialog import *
dir = askdirectory()
print dir
------------------------------------------------------------------------
http://bozicnipokloni.blogspot.com/
http://karacsonyiajandekok1.blogspot.com/
http://kerstcadeaus.blogspot.com/
http://presentesdenatal1.blogspot.com/
http://kysymyksenvastaukset.blogspot.com/
http://festivalfestiviteiten.blogspot.com/
http://svaretblog.blogspot.com/
http://festivalbl.blogspot.com/
http://regalidinatale1.blogspot.com/
http://weihnachtsgeschenke1.blogspot.com/
http://cadeauxdenoel1.blogspot.com/
http://christmasgifts215.blogspot.com/
http://festivaloslavy.blogspot.com/
http://fragebeantwortet.blogspot.com/
http://festivblogi.blogspot.com/
http://cadouridecraciun1.blogspot.com/
http://julegaver1.blogspot.com/
http://christmasgifts211.blogspot.com/
------------------------------------------------------------------------
Note this will only work with Tk 8.3+ and I have read that it won't
work
prior to Py 2.2, but I don't know that for sure, since I have just had
cause to use it recently and didn't use it with earlier versions.
http://www.golfgolfcourses.com/travel.php