MMI: H4

Scherm 1

+------------------------------------------------------+
|                                                      |
|                                                      |
|                        WELKOM                        |
|                                                      |
|                                                      |
|                           +                          |
|                           |                          |
|          +------+         |          +-----+         |
|          | HAVO |         |          | VWO |         |
|          +------+         |          +-----+         |
|                           |                          |
|                           +                          |
|                                                      |
|                                                      |
+------------------------------------------------------+

Scherm 2

+----------------------------------------+
|                                        |
|  Profiel Keuze                         |
|                                        |
|                                        |
|            +       +      +            |
|            |       |      |            |
|       C&M  |  E&M  | N&G  |  N&T       |
|            |       |      |            |
|            +       +      +            |
|                                        |
|  <---+                          +--->  |
|                                        |
+----------------------------------------+

Scherm 3

+--------------------------------------+
|                                      |
|  Je verplichte vakken:               |
|                                      |
|   X  XXXXXXXXXXXXXXXXXXXXXXX         |
|                                      |
|   X  XXXXXXXXX  XXX                  |
|                                      |
|   X  XXXXXXXXXXXX                    |
|                                      |
| <---+                          +---> |
|                                      |
+--------------------------------------+

Scherm 4

+--------------------------------------+
|                                      |
|  Kies je bijvakken:                  |
|                                      |
|   X  XXXXXXXXXXXXXXXXXXXXXXX         |
|                                      |
|   X  XXXXXXXXX  XXX                  |
|                                      |
|   X  XXXXXXXXXXXX                    |
|                                      |
| <---+                          +---> |
|                                      |
+--------------------------------------+

Scherm 5

+--------------------------------------+
|                                      |
|  Overzicht:                          |
|                                      |
|   XXXXXXXXXXXXXXXXXXXXXXX            |
|                                      |
|   XXXXXXXXX  XXX                     |
|                                      |
|   XXXXXXXXXXXX                       |
|                                      |
| <---+                          +---> |
|                                      |
+--------------------------------------+

Python pacman

from tkinter import *
class Player():
def __init__(self, master, radius, xcoordinate=100, ycoordinate=100):
self.master=master
self.xcoordinate = xcoordinate
self.ycoordinate = ycoordinate
self.radius = radius
self.master.title(“World”)
self.master.bind(‘<Up>’, self.moveUp)
self.master.bind(‘<Down>’, self.moveDown)
self.master.bind(‘<Right>’, self.moveRight)
self.master.bind(‘<Left>’, self.moveLeft)
self.draw()

def moveUp(self, event):
self.canvas.move(self.oval_id, 0, -10)

def moveDown(self, event):
self.canvas.move(self.oval_id, 0, 10)

def moveRight(self, event):
self.canvas.move(self.oval_id, 10, 0)

def moveLeft(self, event):
self.canvas.move(self.oval_id, -10, 0)

def draw(self):
self.canvas = Canvas(self.master, width=500, height=500,
borderwidth=0,highlightthickness=0, bg=”black”)
self.canvas.grid()
self.oval_id=self.canvas.create_oval(self.xcoordinate-self.radius,
self.ycoordinate-self.radius,
self.xcoordinate+self.radius,
self.ycoordinate+self.radius,
fill=”yellow”)

class client(Tk):
def __init__(self):
super().__init__()
def draw_player(self, x, y, r, **kwargs):
return self.create_oval(x-r, y-r, x+r, y+r, **kwargs)

Canvas.draw_player = draw_player

master=Tk()
pacman = Player(master, 50)
master.mainloop()

from tkinter import *
import time, sched

class Player():
def __init__(self, master, radius, xcoordinate=100, ycoordinate=100):
self.master=master
self.xcoordinate = xcoordinate
self.ycoordinate = ycoordinate
self.dx=0
self.dy=0
self.radius = radius
self.master.title(“World”)
self.master.bind(”, self.moveUp)
self.master.bind(”, self.moveDown)
self.master.bind(”, self.moveRight)
self.master.bind(”, self.moveLeft)
self.draw()

def move(self):
print (str(self.xcoordinate))
if self.xcoordinate > 10 and self.xcoordinate < 490 and self.ycoordinate > 10 and self.ycoordinate < 490 :
self.canvas.move(self.oval_id, self.dx, self.dy)
else:
self.dx = self.dx*-1
self.dy = self.dy*-1
self.dx = self.dx*-1
self.dy = self.dy*-1
self.canvas.move(self.oval_id, self.dx, self.dy)

self.xcoordinate=self.xcoordinate+self.dx
self.ycoordinate=self.ycoordinate+self.dy

def moveUp(self, event):
self.dx=0
self.dy=-1

def moveDown(self, event):
self.dx=0
self.dy=1

def moveRight(self, event):
self.dx=1
self.dy=0

def moveLeft(self, event):
self.dx=-1
self.dy=0

def draw(self):
self.canvas = Canvas(self.master, width=500, height=500,
borderwidth=0,highlightthickness=0, bg=”black”)
self.canvas.grid()
self.oval_id=self.canvas.create_oval(self.xcoordinate-self.radius,
self.ycoordinate-self.radius,
self.xcoordinate+self.radius,
self.ycoordinate+self.radius,
fill=”yellow”)

class client(Tk):
def __init__(self):
super().__init__()
def draw_player(self, x, y, r, **kwargs):
return self.create_oval(x-r, y-r, x+r, y+r, **kwargs)

Canvas.draw_player = draw_player

master = Tk()
pacman = Player(master, 50)

def m():
pacman.move()
master.after(10, m)

master.after(2000, m)

master.mainloop()