What's the simplest cross-platform way to pop up graphical dialogs in Python?

后端 未结 10 2223
一生所求
一生所求 2020-12-13 04:15

I want the simplest possible way to pop up simple dialogs in Python scripts. Ideally, the solution would:

  • Work on Windows, OS X, Gnome, KDE
  • Look like
10条回答
  •  忘掉有多难
    2020-12-13 04:34

    Another possibility is the tkMessageBox module, which is apparently built into the standard library and is cross-platform, though this is even more ugly than the rest:

    import tkMessageBox
    tkMessageBox.showinfo('Title','Stuff') 
    

    Tkinter is super ugly

提交回复
热议问题