Catching subprocess stdout stream

2008-09-08 Thread Thomas Jansson
"rb"),bufsize=1024,shell=False, stdout=subprocess.PIPE) while p.poll() is None: #Check if child process has terminated. o = p.stdout.readline() ofile.writelines(o) print o, ofile.close Kind regards Thomas Jansson -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a function to make checkbutton with information from a list?

2007-05-14 Thread Thomas Jansson
On 13 Maj, 08:45, Peter Otten <[EMAIL PROTECTED]> wrote: > Thomas Jansson wrote: > > Dear all > > > I am writing a program with tkinter where I have to create a lot of > > checkbuttons. They should have the same format but should have > > different names. My i

Creating a function to make checkbutton with information from a list?

2007-05-12 Thread Thomas Jansson
t;, "LERR", "LCOMP"] for item in self.checkbutton: self.+'item'+Checkbutton = Chekcbutton(frame, onvalue='t', offvalue='f', variable=self.+'item'+) self.+'item'+Checkbutton.grid() How should I do this? Kind regards Thomas Jansson -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with grid() layout under tkinter

2007-05-12 Thread Thomas Jansson
I found the error - some of the widgets belonged to "master" and some to "frame". So glad I found that Error - that took forever! :D Kind regards Thomas Jansson On 11 Maj, 23:06, Thomas Jansson <[EMAIL PROTECTED]> wrote: > Dear all > > I am trying to make a

Problems with grid() layout under tkinter

2007-05-11 Thread Thomas Jansson
strange. I hope you can help me. A example of the program http://tjansson.dyndns.dk/apache2-default/strange-grid.jpg and the code http://tjansson.dyndns.dk/tjansson/gui.py Kind regards Thomas Jansson -- http://mail.python.org/mailman/listinfo/python-list