Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8196791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:35:56+00:00 2026-06-07T05:35:56+00:00

tree.GetSelection() gives the actual tree id object. I would like to get a int

  • 0

tree.GetSelection() gives the actual tree id object.

I would like to get a int of the selection just like a listbox.GetSelection() would return.

Does anyone know how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:35:57+00:00Added an answer on June 7, 2026 at 5:35 am

    The TreeItemId object should have a GetID method which will return its id in the tree

    Edit

    the tree control has a built in feature to store additional information on the tree item.

    item= self.tree.GetSelection()
    self.tree.SetPyData(item,{"Source":"C:\hi.png","Opacity":1})
    print self.tree.GetPyData(item)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to insert a new node into my Tree. I develop with
I have a tree structure in memory that I would like to render in
I created a checkbox tree using jstree, and I would like to add a
tree C:\My files >> pathtree.txt It does not seem to work. What I expected
My Tree structure looks like this, containing three classes Index,Key,Value Index1 | -- Key1
I have a tree of nodes like this: class Node: next # the next
using a binary search tree I need to add to a vector all int
A category tree like this: root_1 sub_1 sub_2 ... to sub_20 Every document has
I have a tree-like model I'd like to show in an NSOutlineView using an
UI tree: listbox with the april 2010 toolkit's listboxdragdroptarget listbox item template includes a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.