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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Perl TK problem

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