Initial commit
This commit is contained in:
commit
4d6911cb29
3 changed files with 37 additions and 0 deletions
22
editor.py
Normal file
22
editor.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import tkinter as tk
|
||||
|
||||
root = tk.Tk()
|
||||
|
||||
area = tk.Text()
|
||||
area.pack()
|
||||
|
||||
def diff(old, new):
|
||||
index = 0
|
||||
if len(old) > len(new):
|
||||
for i in range(len()):
|
||||
pass
|
||||
|
||||
def area_input(event):
|
||||
#print(area.get("1.0", "end"))
|
||||
print(event)
|
||||
if event.keycode == 25:
|
||||
area.mark_set("insert", "1.0")
|
||||
|
||||
area.bind("<KeyRelease>", area_input)
|
||||
|
||||
root.mainloop()
|
||||
Loading…
Add table
Add a link
Reference in a new issue