How can I create a simple message box in Python?

后端 未结 17 1382
心在旅途
心在旅途 2020-11-30 16:44

I\'m looking for the same effect as alert() in JavaScript.

I wrote a simple web-based interpreter this afternoon using Twisted.web. You basically submit

17条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 17:25

    Use

    from tkinter.messagebox import *
    Message([master], title="[title]", message="[message]")
    

    The master window has to be created before. This is for Python 3. This is not fot wxPython, but for tkinter.

提交回复
热议问题