Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Perl TK problem

  • 29-01-2008 06:35PM
    #1
    Closed Accounts Posts: 409 ✭✭


    Hi all,

    I'm new to perl tk and having a little problem writing a gui.

    What I intend to do is have an array of | Label | Entry Box | Browse button |

    When I click the browse button it opens getOpenFile where I can select the file. When I click open I want the file to be entered into the entry box.

    The part I'm having trouble with is returning the file selected to the entry box.

    Any help/suggestions?


Comments

  • Closed Accounts Posts: 570 ✭✭✭BrandonBlock


    You need to give the entrybox a variablename - Example:

    $myEntryBox = $parent->Entry();
    $fileSelected = $myEntryBox->get();

    This will store what you want in $fileSelected variable.


Advertisement