I've been trying to print the results of an ipwhois lookup into a Tkinter textbox but it's not working.
Currently i Get this error: TclError: wrong # args: should be ".40872632.46072536 insert index chars ?tagList chars tagList ...?"
Here's my code:
result2=unicode(set(ipList).intersection(testList));
result3=result2[:19].strip()
result4=result3[6:]
obj = ipwhois.IPWhois(result4)
results = obj.lookup()
results2= pprint.pprint(results)
text = Tkinter.Text(self)
text.insert(Tkinter.INSERT, results2)
text.insert(Tkinter.END, "")
text.pack()
text.grid(...)``
How do I pprint or at least split the results string by newline and why does it not work?