Files
Python-2018/Samy bugué.py
2019-01-20 00:55:05 +01:00

20 lines
454 B
Python

from tkinter import *
import math
import random
Width = 640
Height = 400
window = Tk()
canvas = Canvas(window, width = Width, height = Height, bg = "#000000")
canvas.pack()
img = PhotoImage(width = Width, height = Height)
canvas.create_image(Width // 2, Height // 2, image = img, state = "normal")
#for x in range(Width):
# for y in range(Height):
# img.put("#ffffff", (x, y))
while 1 == 1 :
y = random.randint(0, Height)