Message160451
| Author |
ned.deily |
| Recipients |
ned.deily, serhiy.storchaka, takluyver, terry.reedy |
| Date |
2012年05月11日.21:19:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1336771142.17.0.805767089452.issue14777@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月11日 21:19:02 | ned.deily | set | recipients:
+ ned.deily, terry.reedy, takluyver, serhiy.storchaka |
| 2012年05月11日 21:19:02 | ned.deily | set | messageid: <1336771142.17.0.805767089452.issue14777@psf.upfronthosting.co.za> |
| 2012年05月11日 21:19:01 | ned.deily | link | issue14777 messages |
| 2012年05月11日 21:19:01 | ned.deily | create |
|