Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread softwindow
really in which case? -- http://mail.python.org/mailman/listinfo/python-list

hi,everyone. a problem with shelve Module

2006-05-26 Thread softwindow
according to the book instruduction , i use shelve Module to write record to file. i only write ten records like this: name sex age jimmale 22 tom male 23 lucy female

Re: hi,every body. a problem with PyQt.

2006-05-24 Thread softwindow
i find it now thanks ! -- http://mail.python.org/mailman/listinfo/python-list

Re: hi,every body. a problem with PyQt.

2006-05-24 Thread softwindow
but in my computer pyuic is not a valid commond may be i don't install something,but i have installed PyQt4. -- http://mail.python.org/mailman/listinfo/python-list

Re: hi,every body. a problem with PyQt.

2006-05-24 Thread softwindow
thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list

hi,every body. a problem with PyQt.

2006-05-24 Thread softwindow
i use QT-designer to design application GUI. now i save the test.ui file into e:\test\test.ui next step,how can i run it? -- http://mail.python.org/mailman/listinfo/python-list

Re: FAQ for XML with Python

2006-05-19 Thread softwindow
Thanks! is very usefull for me -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting URL's

2006-05-19 Thread softwindow
it is difficult to get all URL's in a page you can use sgmllib module to parse html files can get the standard href . -- http://mail.python.org/mailman/listinfo/python-list

Re: who can give me the detailed introduction of re modle?

2006-05-19 Thread softwindow
thanks for your advice! :) -- http://mail.python.org/mailman/listinfo/python-list

who can give me the detailed introduction of re modle?

2006-05-18 Thread softwindow
the re module is too large and difficult to study i need a detaild introduction. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
import os import zipfile z = zipfile.ZipFile(r"c:\text.zip",mode="w",compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) start = cwd.rfind(os.sep)+1 z.

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
aha now it's right like this: import os import zipfile z = zipfile.ZipFile(r"c:\text.zip",mode="w",compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) start = cwd

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
Carl Banks is right -- http://mail.python.org/mailman/listinfo/python-list

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
aha we want to do it with python don't use ant -- http://mail.python.org/mailman/listinfo/python-list

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
my code can work, like below: import os import zipfile z = zipfile.ZipFile(r"c:\text.zip",mode="w",compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) z.write(z_p

Re: Script to make Windows XP-readable ZIP file

2006-05-18 Thread softwindow
i am in win2000 "z.write(a_path,a_path)" may change to "z.write(a_path)" but the dirpath is not in zipfile who can tell me? -- http://mail.python.org/mailman/listinfo/python-list