main.py 文件源码

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

项目:goreviewpartner 作者: pnprog 项目源码 文件源码
def launch_review():
    filename = tkFileDialog.askopenfilename(parent=app,title='Select a file',filetypes = [('sgf reviewed', '.rsgf')])
    log(filename)
    if not filename:
        return

    top = Toplevel()

    display_factor=.5

    screen_width = app.winfo_screenwidth()
    screen_height = app.winfo_screenheight()

    width=int(display_factor*screen_width)
    height=int(display_factor*screen_height)

    new_popup=dual_view.DualView(top,filename,min(width,height))
    new_popup.pack(fill=BOTH,expand=1)
    popups.append(new_popup)
    top.mainloop()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号