How can I make a string print a list? (Probably very simple, I know)
I went through the whole google and NONE of the solutions worked.
My code: (it's a little rehash)
import Pmw from tkinter import * root = Tk() console = Pmw.ScrolledText(...some arguments...) console.pack(...some arguments...) console.settext(os.listdir(".")) root.mainloop()
Outputs: file1.txt file2.txt file3.txt in the Pmw.ScrolledText field.
What do I need to do to make the result look like this?
file1.txt file2.txt file3.txt
Thanks you.
spikespaz
source share