<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2024-10-26</id>
	<title>Blog: 2024-10-26 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2024-10-26"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2024-10-26&amp;action=history"/>
	<updated>2026-04-06T23:15:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2024-10-26&amp;diff=1117&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Here&#039;s my silly little quicktime event with tkinter  &lt;pre&gt; import tkinter as tk from tkinter import ttk, PhotoImage  # Create the main window root = tk.Tk() root.title(&quot;Image in Tkinter&quot;) root.geometry(&#039;600x600&#039;)  # Load the image image = PhotoImage(file=&quot;trogdor.png&quot;)  # Create a label to display the image image_label = tk.Label(root, image=image) image_label.pack()   win = False  def button_pressed():     win = True     print(&#039;You stab the dragon in the neck and it die...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2024-10-26&amp;diff=1117&amp;oldid=prev"/>
		<updated>2024-10-26T07:12:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Here&amp;#039;s my silly little quicktime event with tkinter  &amp;lt;pre&amp;gt; import tkinter as tk from tkinter import ttk, PhotoImage  # Create the main window root = tk.Tk() root.title(&amp;quot;Image in Tkinter&amp;quot;) root.geometry(&amp;#039;600x600&amp;#039;)  # Load the image image = PhotoImage(file=&amp;quot;trogdor.png&amp;quot;)  # Create a label to display the image image_label = tk.Label(root, image=image) image_label.pack()   win = False  def button_pressed():     win = True     print(&amp;#039;You stab the dragon in the neck and it die...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here&amp;#039;s my silly little quicktime event with tkinter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import tkinter as tk&lt;br /&gt;
from tkinter import ttk, PhotoImage&lt;br /&gt;
&lt;br /&gt;
# Create the main window&lt;br /&gt;
root = tk.Tk()&lt;br /&gt;
root.title(&amp;quot;Image in Tkinter&amp;quot;)&lt;br /&gt;
root.geometry(&amp;#039;600x600&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# Load the image&lt;br /&gt;
image = PhotoImage(file=&amp;quot;trogdor.png&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# Create a label to display the image&lt;br /&gt;
image_label = tk.Label(root, image=image)&lt;br /&gt;
image_label.pack()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
win = False&lt;br /&gt;
&lt;br /&gt;
def button_pressed():&lt;br /&gt;
    win = True&lt;br /&gt;
    print(&amp;#039;You stab the dragon in the neck and it dies. Nice one&amp;#039;)&lt;br /&gt;
    root.destroy()&lt;br /&gt;
&lt;br /&gt;
def game_over():&lt;br /&gt;
    if win:&lt;br /&gt;
        return&lt;br /&gt;
&lt;br /&gt;
    print(&amp;#039;The dragon eats you with a loud CHOMP&amp;#039;)&lt;br /&gt;
    root.destroy()&lt;br /&gt;
&lt;br /&gt;
image_label.after(5000, game_over)&lt;br /&gt;
&lt;br /&gt;
button = ttk.Button(root, text=&amp;#039;Stab dragon&amp;#039;, command=button_pressed)&lt;br /&gt;
button.pack(expand=True)&lt;br /&gt;
&lt;br /&gt;
# Start the Tkinter event loop&lt;br /&gt;
root.mainloop()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>