I often hear monks explaining that Perl/Tk's interface is outdated, or that it's "Motif-like." While I have nothing against these monks, I feel it my duty as a Perl/Tk user to point out that this just isn't true. Perl/Tk's default interface can be easily customized to remedy this.
If you're finding that your Tk apps look a little ugly on X-based systems, try adding the following lines to the top of your script:
Assuming $mw represents your main window, all of your Tk windows and widgets will take on a MUCH more modern appearance. Of course, you can tweak these values to fit your needs.$mw->optionAdd("*font", "-*-arial-normal-r-*-*-*-120-*-*-*-*-*-*"); $mw->optionAdd("*borderWidth", 1);
BTW, would it make sense to include something like this in the core of the next Tk so that new Tk programmers don't become disappointed with the default Tk interface?
Just a thought.
Bill Atkins
milkbone = perl + tk + instant messaging
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl/Tk doesn't look that bad
by webfiend (Vicar) on Jun 16, 2003 at 09:28 UTC | |
Re: Perl/Tk doesn't look that bad
by MarkM (Curate) on Jun 16, 2003 at 04:40 UTC | |
Re: Perl/Tk doesn't look that bad
by Courage (Parson) on Jun 17, 2003 at 12:27 UTC | |
by batkins (Chaplain) on Jun 17, 2003 at 17:16 UTC | |
by Courage (Parson) on Jun 18, 2003 at 08:32 UTC | |
by batkins (Chaplain) on Jun 18, 2003 at 10:32 UTC | |
by Courage (Parson) on Jun 18, 2003 at 15:18 UTC | |
Re: Perl/Tk doesn't look that bad
by bobdeath (Scribe) on Jun 17, 2003 at 15:26 UTC | |
by batkins (Chaplain) on Aug 19, 2003 at 15:58 UTC | |
Re: Perl/Tk doesn't look that bad
by Anonymous Monk on Jun 17, 2003 at 15:02 UTC | |
by batkins (Chaplain) on Jun 17, 2003 at 17:01 UTC |
Back to
Meditations