Re: Pipe stdout stderr to a TkLabel widget

2009-02-01 Thread rantingrick
Hello, anybody. Any help would be good help Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Pipe stdout stderr to a TkLabel widget

2009-02-01 Thread rantingrick
PS: The braces are there because i used *arg in the fuction, so that is not a problem now. All i want to do is overide the print statement to sent all it's output to a Tkinter Label widget Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Pipe stdout stderr to a TkLabel widget

2009-01-26 Thread rantingrick
OK, here is a simple example that will show you what i want to do. Right now if you type print 'hello' in the entry and press enter you will see braces in the label {}. But if you type sys.stdou.write (hello) you will see {hello} in the label. So i got the stdout piping to the widget now, but it

Pipe stdout stderr to a TkLabel widget

2009-01-26 Thread rantingrick
I am wondering how i might pipe stdout stderr to a Tkinter Label widget. here are a few ways to set the text #-- Create a label --# label = Label(master, text='Default Text') label.pack() # -- two ways to change the text --# label['text'] = 'New Text' label.configure(text='New Text') #-- or