Frank Merrow <fmerrow@xxxxxxxxxxxx> writes:
>What is the usual way to implement a "Browse" button (to select a file
>name) in TK?
>
>I've found Tk::FileDialog which is mostly okay I guess except it doesn't
>seem to have the focus when it starts.
The approved basic Tk way is to call $widget->getOpenFile(...)
(or ->getSaveFile(...))
There are then various options to that which get you various styles
of dialog. Mainly FileSelect, FBox, (or on Win32 the Native widget).
As I recall FileDialog is yet another one ... which I didn't like
all that much, but can't remember why.
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
|