Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Tkinter question - proper output in Text widget (http://www.velocityreviews.com/forums/t319443-tkinter-question-proper-output-in-text-widget.html)

T. Kaufmann 07-09-2003 02:01 PM

Tkinter question - proper output in Text widget
 
Hi there,

I have some lines of code in a Tkinter programm - I want to list every single
file of a zip-archive in a Text widget:

fp = os.popen("%s %s" % ('unzip -vl ', 'anyarchiv.zip', 'r')
for line in fp:
textWidget.insert(END, "%s" % (line))

The result is that the columns are not really proper if the file-size of the
listed files is different. An output example:


Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
1175 Defl:N 513 56% 05-23-03 13:51 084e4103 charset.py
972 Defl:N 427 56% 04-05-03 18:42 b8bb850d controller.py


Here it looks good but not in my application (in the Text widget). Whats wrong?
How can I made a better result (proper columns).

o-o

Thomas



All times are GMT. The time now is 11:22 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.