Tkinter messagebox without window?

前端 未结 4 1764
别那么骄傲
别那么骄傲 2020-11-30 10:08

I want to show an info window in my python script running on ubuntu. I\'m using the following code:

import tkMessageBox
tkMessageBox.showinfo(\"Say Hello\",          


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 10:35

    Import messagebox individually. For example:

    from tkinter import *
    import tkinter.messagebox
    

    or

    from tkinter import messagebox
    

提交回复
热议问题