Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Tk, Tcl/Tk, Tkx

by Sandy (Curate)
on Mar 03, 2016 at 16:16 UTC ( #1156741=perlquestion: print w/replies, xml ) Need Help??

Sandy has asked for the wisdom of the Perl Monks concerning the following question:

I have been using Tk for quite some time now, however when I moved to a MAC recently, I discovered the Tk rendering leaves something to be desired.

Research pointed me to using the 'real' Tk via Tcl/Tk or Tkx.

Does anyone have any preferences between Tcl/Tk or Tkx?

After some rudimentary research last night, I was not able to determine if it is easy to create MegaWidgets in either Tcl/Tk or Tkx. I have created a number of them for myself, and wish to continue using them.

Sadly, I also discovered that Tcl/Tk does not support a Canvas->createGrid. (sad)

Any comments?


Replies are listed 'Best First'.
Re: Tk, Tcl/Tk, Tkx
by jellisii2 (Hermit) on Mar 03, 2016 at 21:06 UTC
    I've successfully used Tkx in the past. That said, it was a few years ago, and I was a complete neophyte to Perl on the GUI. TKDocs was the reference I used. Some help from some of the friendly monks around here and I was able to make something that is still being used to this day, which is kinda nice.
Re: Tk, Tcl/Tk, Tkx
by Anonymous Monk on Mar 03, 2016 at 23:28 UTC
      Tcl::pTk fails all the tests It also complains that Tix is not included. Is this true (something I can ignore... ??) Am I missing something?
      [~/Downloads/Tcl-pTk-0.90] make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/after.t ..................... 1/8 Tcl::pTk::Error: Undefined subrout +ine &Tcl::_current_refs_widget called at /Users/sandy/Downloads/Tcl-p +Tk-0.90/blib/lib/Tcl/pTk/ line 1214. while executing "::perl::CODE(0x7ff211520ea8)" ("after" script) Error Started at t/after.t line 36. Stack Trace: at /Users/sandy/Downloads/Tcl-pTk-0.90/blib/lib/Tcl/ line 891. eval {...} called at /Users/sandy/Downloads/Tcl-pTk-0.90/blib/lib +/Tcl/ line 891 Tcl::pTk::DoOneEvent('Tcl::pTk=SCALAR(0x7ff211005e80)', 0) called + at /Users/sandy/Downloads/Tcl-pTk-0.90/blib/lib/Tcl/ line 869 Tcl::pTk::MainLoop() called at t/after.t line 36 t/after.t ..................... Failed 1/8 subtests t/afterDestroy.t .............. Undefined subroutine &Tcl::_current_re +fs_widget called at /Users/sandy/Downloads/Tcl-pTk-0.90/blib/lib/Tcl/ +pTk/ line 1308. at t/afterDestroy.t line 15.

        Tcl::pTk fails all the tests It also complains that Tix is not included. Is this true (something I can ignore... ??) Am I missing something?

        Can't really ignore it, Tix plays a part in the "looks".

        Should be simple to install, last time I did it with

        teacup update-self teacup verify teacup install Tix teacup install Plotchart teacup install ctext
      thank you, that is the kind of info I was looking for

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1156741]
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-12-04 20:45 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.