repository to manage all files for 1_2_oder_3 interaction game for Inf2/2 Interaktionen SoSe23 from Engert, Caliskan and Bachiri
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui.py 368B

123456789101112131415161718
  1. import tkinter as tk
  2. def button_callback():
  3. print("Button was clicked")
  4. # Create the main window
  5. window = tk.Tk()
  6. # Add a label to the window
  7. label = tk.Label(text="Hello, World!")
  8. label.pack()
  9. # Add a button to the window
  10. button = tk.Button(text="Click me!", command=button_callback)
  11. button.pack()
  12. # Run the main loop to display the window
  13. window.mainloop()