opencv_gtk_gui_dev1.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:ghetto_omr 作者: pohzhiee 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号