init image

This commit is contained in:
2024-07-13 16:23:11 +02:00
commit 1183327e7e
13 changed files with 890 additions and 0 deletions

16
ui/log_window.py Normal file
View File

@@ -0,0 +1,16 @@
import tkinter as tk
from tkinter.scrolledtext import ScrolledText
class LogWindow(tk.Toplevel):
def __init__(self, parent):
super().__init__(parent)
self.title("Processing Log")
self.geometry("600x400")
self.log_text = ScrolledText(self, state='disabled', wrap='word')
self.log_text.pack(expand=True, fill='both')
def log(self, message):
self.log_text.config(state='normal')
self.log_text.insert(tk.END, message + "\n")
self.log_text.see(tk.END)
self.log_text.config(state='disabled')