简体   繁体   中英

Is C++/Tk compatible with Tk 8.5?

Since Tk 8.5, Tk started using Native Based UI components - buttons, scrollbars etc. I wonder if C++/Tk supports such Native GUIs approach?

As far as I can see, C++/Tk is based on Tk 8.4 (if it's before that then it really needs updating). It wouldn't in principle be that hard to adapt to 8.5, where the Ttk widgets are supported; just a matter of adding more widget definitions (and a few other commands too, so you can do things like change the theme). If it's done at all sensibly[*], that'd take you all of a few hours for at least some of the widgets as the Ttk widgets already follow the same sorts of patterns as existing widgets; the non-widget bits might take longer, as might the wholly new widget types (notebook, treeview) as, although they follow normal Tk patterns, they still have a number of new methods.

[* I've not read the source code to C++/Tk, so I can't say for sure how easy it is. ]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM