dani_cv_74 has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, Can anybody please give me a simple example of how to populate tree widget, Perl_Tk. Also, I would like to know how to retrieve the value from a node selected. Thanks and Best Regards,
Dan BGM NY

Replies are listed 'Best First'.
Re: Reg. Perl TK tree widget
by zer (Deacon) on Mar 22, 2006 at 03:17 UTC
    you should take a look in the tutorial section.

    Tk Tutorial

Re: Reg. Perl TK tree widget
by GrandFather (Saint) on Mar 22, 2006 at 03:19 UTC

    Take a look at Directory tree explorer with stats reporting for code that populates a tree. Note that the code keeps a stack (@pathStack) for managing creating the path ($currPath = join "/", @pathStack;) required for putting an entry into the tree.


    DWIM is Perl's answer to Gödel
      Thanks a lot for your valuable suggestions.
      Dan BGM NY
Re: Reg. Perl TK tree widget
by zer (Deacon) on Mar 22, 2006 at 03:21 UTC
    This is not the best place for this question. It would be best to look in the tutorial section first, then ask questions in Seekers of Perl Wisdom.

    How do I post a question effectively
    update:When i posted this the question was posted in Discussion.