python中有没有类似于JOptionPane的东西?如,它是否有内置的图形库,如果有,你能否展示一下如何在 Python 中做类似的事情?
在 Java 中,您可以简单地执行以下操作:
import java.swing.*;
JOptionPane.showMessageDialog(null, "Hello, World");
此外,javaScript 有类似的东西:
alert("Hello, World");
这实际上取决于您使用的 GUI 框架。
QtGui.QMessageBox.question(self,
'Message',
"Are you sure to quit?",
QtGui.QMessageBox.Yes,
QtGui.QMessageBox.No)
wx.MessageBox('Download completed',
'Info',
wx.OK | wx.ICON_INFORMATION)