entries between labels dynamically

Cameron Laird claird at starbase.neosoft.com
Fri Feb 15 18:44:00 EST 2002


In article <20020215225431.7bdef34e.risnes at alfanett.no>,
André Larsen Risnes  <risnes at alfanett.no> wrote:
>Artur Skura <arturs at iidea.pl> wrote:
>[...]
>>
>> Now can you suggest an easy, lazy way of doing this (with any
>> toolkit) so things don't pile up and everything looks nice?
>> 
>Sure (with tkinter):
			.  .  .
>for part in text.split("%"):
>    if part == "text":
>        Text(root, width=8, height=1).pack(side=LEFT)
>    else:
>        Label(root, text=part).pack(side=LEFT)
			.  .  .
Seconded.  This is precisely the attraction of
Tkinter's "pack".  People accustomed to use of
Tkinter in this way are aghast at the difficulties
VB-style programmers have with this task.
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list