Python's tkinter.messagebox module shows Windows native dialogs (win/tkWinDialog.c#L2950), and it shows Mac OS native dialogs (macosx/tkMacOSXDialog.c#L1399), but since Linux doesn't have any clearly defined "native" dialog system, Tkinter uses a fallback messagebox built out of Tkinter widgets (library/msgbox.tcl#L115).

However, Python does not currently have any non-ugly "ttk" bindings for this (Lib/tkinter/messagebox.py#L61).

Leave a Reply

Your email address will not be published. Required fields are marked *

Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.
If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.