Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Perl TK problem

Options
  • 29-01-2008 6: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