Calvin (Deutschbein)
W7Wed: 09 Oct
from pgl import *
# same click func
def click_func(e):
x = e.get_x()
y = e.get_y()
gw.box.set_location(x,y)
gw = GWindow(400,400)
# same as my rect, but on "gw.box"
gw.box = GRect(400,400,50,50)
gw.box.set_filled(True)
gw.box.set_color('pink')
gw.add(gw.box)
gw.add_event_listener("click",click_func)
|
|
|
|
|
|
|
|
|
|
|
|