def on_button_press(self, w, e):
if e.type == Gdk.EventType.BUTTON_PRESS \
and e.button == 1: #Left Button
self.coords.append([e.x, e.y])
if e.type == Gdk.EventType.BUTTON_PRESS \
and e.button == 3: #Right Button
self.queue_draw()
# class image(Gtk.Image):
# def __init__(self, parent):
# x
评论列表
文章目录