in reply to Perl Tk macOS segmentation fault 11

First, did you compile Tk yourself ( which is quite easy ) or are you using what is provided by the Mac? Try compiling it yourself and report any errors. Don't worry about the test suite failing.

As far as Tk looking really bad, really 90's, it is really 90's. :-) You have to understand the simplicity of the Tk toolkit in order to fully appreciate it. It requires nothing more the basic X system libs to compile and run. It itself, is quite a small codebase, which in this age of security concerns has many advantages. With Tk, you can make your widgets as fancy as you want, and even make make your own custom subclassed widgets simply out the Canvas widget. See Tk-CanvasDirTree for a simple example. True you have to put alot extra color statements to get the effect you desire, and Tk dosn't conform to any theme standards, like Gtk2 or Gtk3. Then again, Gtk2 and Gtk3 will load an enormous amount of libraries .... which do your prefer? Theme conforming modern looking GUI's which come a load of dependencies, or the basic simplicity of Tk? Your choice.

If you want to make something really special with Tk, including semi-transparency, and matrice geometry control, like zooming and rotations, see Tk::Zinc

  • Comment on Re: Perl Tk macOS segmentation fault 11

Replies are listed 'Best First'.
Re^2: Perl Tk macOS segmentation fault 11
by Anonymous Monk on Feb 26, 2018 at 16:16 UTC

    Thank you for your thoughts. However, I disagree that Tk must look so bad. In fact, even Perl/Tk on Windows looks pretty decent and with some work I can create quite appalling GUIs. The problem on macOS is that it rely on Xquartz and here, yes, it looks OLD. However, this has nothing to do with Tk. Using the Tcl::pTk module I discovred a few days ago, my Perl/Tk scripts suddenly looks pretty modern (no Xquartz needed). just try for yourself using the integrated widget examples (run widgetTclpTk). And it looks pretty Mac-ish too

      with some work I can create quite appalling GUIs

      I hope you meant "appealing", not "appalling" ;-)

      Nah perl/Tk is tcl/Tk fork from 1994. Tcl/tk moved on since then. Perl/tk aka Tk.pm aka Tk is stuck with the looks it has, that you can tk::style