[issue14777] Tkinter clipboard_get() decodes characters incorrectly

Ned Deily report at bugs.python.org
Fri May 11 23:19:02 CEST 2012

Ned Deily <nad at acm.org> added the comment:

Most likely the best way to determine the windowing system is to use the "tk windowingsystem" command (http://www.tcl.tk/man/tcl8.5/TkCmd/tk.htm#M10), so something like this:

    root = tkinter.Tk()
    root.call(('tk', 'windowingsystem'))

As documented, the call returns 'x11' for X11-based systems, 'win32' for Windows, and 'aqua' for the native OS X implementations.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list