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()
评论列表
文章目录