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

Re^3: [Tkx] Search for dialog box for text input

by Anonymous Monk
on Apr 23, 2012 at 12:41 UTC ( #966592=note: print w/replies, xml ) Need Help??

in reply to Re^2: [Tkx] Search for dialog box for text input
in thread [Tkx] Search for dialog box for text input

This solution is acceptable, but not perfect. For some reason the dialog buttons stick to the right side of the window.

Tk::DialogBox mentions you have no control over appearance of buttons, from experience I know this is just following Tcl/Tk tradition , so I won't go digging to see where this is explained in Tk docs (its not in the obvious places)

In the meantime I found an alternative at ... package require ttk::dialog

from Tcl/Tk to Perl/Tkx. Hopefully one of you monks can help me along again.

You probably don't have that installed, so the following won't help

$ perl -MTkx -e " Tkx::package_require(q/ttk::dialog/); " can't find package ttk::dialog at -e line 1.

Even the undocumented (raw tcl commands) don't work

$ perl -MTkx -e " Tkx::i->interp->Eval(q/package require ttk::dialog/) + " can't find package ttk::dialog at -e line 1.

Safe to say ttk::dialog doesn't come standard (esp with activeperl) so you'd have to install it yourself if its possible. See also

Replies are listed 'Best First'.
Re^4: [Tkx] Search for dialog box for text input
by GUIfriend (Sexton) on Apr 28, 2012 at 08:29 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-02-25 07:04 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (108 votes). Check out past polls.