Code: Alles auswählen
import Tkinter as tk
text = tk.Text()
text.pack()
def ausgabe(zeile):
print str(text.get(str(text.index('insert')[0]) +
".0", str(text.index('insert')[0]) + ".end"))
text.bind("<Button-1>", ausgabe)
Code: Alles auswählen
import Tkinter as tk
text = tk.Text()
text.pack()
def ausgabe(zeile):
print str(text.get(str(text.index('insert')[0]) +
".0", str(text.index('insert')[0]) + ".end"))
text.bind("<Button-1>", ausgabe)