Tkinter import filedialog error

前端 未结 3 2061
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 19:23

I\'m trying to use tkinter with python3 to open an image, see here a piece of code :

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# --- Python 3.4

from PI         


        
3条回答
  •  时光取名叫无心
    2020-12-19 20:10

    It should be from tkinter import filedialog alternatively you can try from tkinter import * or import tkinter.filedialog as fd . If it doesn't work like that, then you should try to reinstall python.

提交回复
热议问题