Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Tkx not installing properly

by chrstphrchvz (Scribe)
on May 13, 2019 at 00:23 UTC ( #1233675=note: print w/replies, xml ) Need Help??

in reply to Re^2: Tkx not installing properly
in thread Tkx not installing properly

I'm glad you asked! Yes, there might be.

You can use Ttk widgets from any Tcl/Tk wrappers: Tkx, Tcl::Tk, Tcl::pTk, and even by itself (disclosure: I now maintain Tcl::pTk and Tkx). However I think which one to use depends on what you're familiar with and whether you're working on an existing Perl/Tk program. I have more info on comparing the wrappers in an answer on StackOverflow. Those familiar with Perl/Tk might try Tcl::Tk and Tcl::pTk: Tcl::Tk is simpler and probably better for new projects not depending on any Perl/Tk extensions, while Tcl::pTk tries to work with existing Perl/Tk programs (they might not work on the first try, but I think the effort of getting them working in Tcl::pTk likely beats rewriting them in Tkx or Tcl syntax). For anyone not familiar with Perl/Tk, or familiar with Tcl/Tk or wrappers on other programming languages (e.g. Tkinter for Python), it might be better to stick with Tkx and follow the tutorials on All of these wrappers allow using pure Tcl syntax as well.

For existing Perl/Tk programs, you might first give Tcl::pTk::Facelift and Tcl::pTk::TkHijack a try. (I have some notes on using Tcl::pTk::TkHijack in another PerlMonks thread.) If you become "committed" to using Tcl::pTk over Perl/Tk, then another option is prefixing common widget types with ttk (e.g. ttkButton, ttkLabel).

However, I think there is a strong likelihood that the issue you've encountered here will affect the other Tcl/Tk wrappers. I sent an email to the perl-tcltk mailing list to inform others who might be able to help.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1233675]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2021-05-18 18:31 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (183 votes). Check out past polls.