如何设置Tcl/Tk“系统配置"?项目? [英] How to set Tcl/Tk "system configuration" items?

查看:149
本文介绍了如何设置Tcl/Tk“系统配置"?项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://www.tcl.tk/man/tcl8.6/TkCmd/tk_mac.htm#M20 讨论了系统配置参数",该参数应在Mac上修改顶层背景.

https://www.tcl.tk/man/tcl8.6/TkCmd/tk_mac.htm#M20 talks about a "System configuration parameter", which is supposed to modify toplevel background on Mac.

如何在Tkinter中设置此参数?

How should I set this parameter in Tkinter?

我尝试了tk_root.option_add("::tk::mac::useThemedToplevel", 1),但似乎没有效果.

I tried tk_root.option_add("::tk::mac::useThemedToplevel", 1) but it seems to have no effect.

推荐答案

您尝试过

使用"-background systemWindowHeaderBackground"配置顶层

configuring the toplevel with "-background systemWindowHeaderBackground"

根据链接信息?.

我是一名tcl'er,所以我无法使用tkinter进行处理.如果不起作用,您可以查看以下其他链接:

I'm a tcl'er so i can't help with that using tkinter. If doesn't works, you could take a look to these other links:

MacWindowStyle :MacOS X命令,用于创建具有各种外观的顶级窗口

MacWindowStyle : a MacOS X command to create toplevel windows with a variety of appearances

Mac OS X上的Tk差异:包括一些错误.

(或可以在tcl/tk Wiki中搜索有关Mac的更多信息.)

(Or can search for more info about Mac in the tcl/tk wiki.)

希望这对您有所帮助,

礼炮!

这篇关于如何设置Tcl/Tk“系统配置"?项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆