Commit 03234fef authored by Mythezone's avatar Mythezone
Browse files

update

parent f446cf48
Loading
Loading
Loading
Loading
(8 KiB)

File changed.

No diff preview for this file type.

Empty file added.

+4 −4
Changes for src/GameEngin/window/test_pyglet.py: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -9,11 +9,11 @@ label=pyglet.text.Label("Hello,world!",
                        x=window.width//2,
                        y=window.height//2,
                        anchor_x='center',anchor_y='center')
pyglet.resource.Loader(path=[os.path.curdir,'res'])
pyglet.resource.Loader.reindex()
# pyglet.resource.Loader(path=[os.path.curdir,'res'])
# pyglet.resource.Loader.reindex()

print(pyglet.resource.Loader.path())
image=pyglet.resource.image('pillow.png')
# print(pyglet.resource.Loader.path())
image=pyglet.resource.image('res/pillow.png')
@window.event
def on_draw():
    window.clear()
+x+4
Changes for test/bash/test.sh: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/bash

# comment
echo "today is `date`"
 No newline at end of file
+25
Changes for test/tkinter/tutorial.py: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
import tkinter as tk

class Application(tk.Frame):
    def __init__(self, master=None):
        super().__init__(master)
        self.master = master
        self.pack()
        self.create_widgets()

    def create_widgets(self):
        self.hi_there = tk.Button(self)
        self.hi_there["text"] = "Hello World\n(click me)"
        self.hi_there["command"] = self.say_hi
        self.hi_there.pack(side="top")

        self.quit = tk.Button(self, text="QUIT", fg="red",
                              command=self.master.destroy)
        self.quit.pack(side="bottom")

    def say_hi(self):
        print("hi there, everyone!")

root = tk.Tk()
app = Application(master=root)
app.mainloop()
 No newline at end of file