hi,
i have written this small code which allow me to unzip files using
python :
import zipfile
import os
import os.path
pathDir="/home/toto/Desktop"
pathZip= os.path.join(pathDir,"foobar.zip")
if zipfile.is_zipfile(pathZip):
zf = zipfile.ZipFile(pathZip)
for file in zf.namelist():
ok thanks, it works even if it's a little bit dirty.
--
http://mail.python.org/mailman/listinfo/python-list
> ZIP doesn't store file permissions.
ok, but in that case how could stuffit retrieve these permissions ?
Thanks for the link Robert.
--
http://mail.python.org/mailman/listinfo/python-list
> OTOH, I don't know if this has any relevance to the problem that you are
> seeing.
not really, i have used the 'os.chmod' trick, but it's still
interesting.
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm looking for a way to select some leafs in a tree.
My idea is to use a TreeListCtrl, with the tree in the first column and
checkboxes in the second.
But I don't know how to do this, tree items seems only to be able to
contain text, not a wx-object.
ideas or suggestion are welcome.
--
Hi,
I have several files to download and a GUI to update. I know this is a
frequently asked question but i can't find an appropriate solution.
My Downloader extends threading.Thread and update a wx.Gauge in GUI
during the process.
for src in urls:
downloader = Downloader( src, destination,
thanks for all these advices.
I think a custom event will be the way to go.
for the moment I use something _really_ ugly : a mix between GUI,
threads and recursive fonctions.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a reason why a wx.MessageDialog would be displayed without
components inside ?
this :
md = wx.MessageDialog(None,'foo','bar',wx.YES_NO)
result = md.ShowModal()
md.Destroy()
In my application, give me :
http://img252.imageshack.us/my.php?image=messagedialog6nw.jpg
This isn't a bug in wx
nope, I have put md.Destroy() away and it didn't change something.
I don't think that's the problem because ShowModal() is a blocking
method, execution is stop until you press YES or NO (in my case with
wx.YES_NO)
--
http://mail.python.org/mailman/listinfo/python-list
> Just a thought, do you call the event loop ?
yes i do.
I really can't see my a MessageDialog would appear without components
inside. maybe a thread problem ?
--
http://mail.python.org/mailman/listinfo/python-list
yes, it did work.
--
http://mail.python.org/mailman/listinfo/python-list
maybe you can catch the result of /bin/df and parse it.
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo