python中ttk和tkinter_Python中tkinter和tkinter.ttk的小部件有什么区别?

Recently, other Open Source toolkits such as Qt (used by the KDE

project) and GTK (used by the GIMP graphics editing software and the

Gnome project) emerged as powerful and free alternatives to Motif for

X-Window GUI development. The rapidly growing success of Open Source

systems such as GNU/Linux helped both toolkits attract a vast

community of developers, and the firm (and sometimes friendly)

competition between both communities led to an explosion of new

features. Thirst for freedom and customizability created the need for

themeability.

The current implementation of Tk only provides native look&feel on

supported platforms (Windows, X-Window, MacOS). This lack partly

explains Tk's loss of mind-share, especially amongst Linux developers,

where theme support is considered a "cool" or must-have feature.

While yesterday's goal of many GUIs was cross-platform visual

uniformity (Qt and GTK borrowed much of their visual appearance from

Windows, which borrowed earlier from NeXTStep), it is now quite common

to find huge visual differences on today's desktops, even on similar

systems. Screenshot contests are quite common nowadays.

...

Many Tk users may see themes support as cosmetic or of lower

importance than much needed features such as megawidgets or

objectification. Nevertheless, this is a critical feature to be

implemented for the long-term viability of Tk. Many courses are now

promoting Qt, GTK or (aarggg!) Swing in place of Motif, leaving no

room for Tk. Whatever its qualities (cross-platform, performance, ease

of use, internationalization and Unicode support), the lack of

themeability will always be seen as one of the main reasons for not

using Tk. Applications using Tk instead of GTK will look as "foreign"

on pixmap-themed Linux desktop, or even on newer MacOS and Windows

versions, as pre-8.0 applications were on non-X desktops.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值