Initial commit

This commit is contained in:
Pascal Engélibert 2024-10-12 12:56:06 +02:00
commit 4d6911cb29
3 changed files with 37 additions and 0 deletions

6
README.md Normal file
View file

@ -0,0 +1,6 @@
https://code.activestate.com/recipes/579048-python-mandelbrot-fractal-with-tkinter/
https://stackoverflow.com/questions/9886274/how-can-i-convert-canvas-content-to-an-image
https://tkdocs.com/tutorial/text.html
https://stackoverflow.com/questions/33084097/tkinter-really-all-complete-event-list
https://stackoverflow.com/questions/4172659/master-list-of-all-tkinter-events
https://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M7

22
editor.py Normal file
View 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()

9
xlog.py Normal file
View file

@ -0,0 +1,9 @@
import pygame
pygame.font.init()
font = pygame.font.SysFont('FreeMono', 16)
def display(surface, lines):
for i in range(len(lines)):
surface.blit(font.render(lines[i], False, (255,255,255)), (0, i*20))