Skip to content

How to get return value? #59

@sanitamainali

Description

@sanitamainali

How do we get a value whenever we click on the node?
In below code:
ImageType=Tree() ImageType.add_node(Node('Landsat',[Node('Collection 1', [Node('Suface Reflectance', [Node('Landsat 8'),Node('Landsat 7')] ), Node('Top Of Atmosphere', [Node('Landsat 8'),Node('Landsat 7')] )]), Node('Collection 2', [Node('Suface Reflectance', [Node('Landsat 8'),Node('Landsat 7')] ), Node('Top Of Atmosphere', [Node('Landsat 8'),Node('Landsat 7')] )])])) ImageType.add_node(Node('Sentinel', [Node('Sentinel-1 SAR'),Node('Sentinel-2 MSI'),Node('Sentinel-3 OLCI EFR')] )) ImageType
How do I get for example a 'LS8SRC!' text or anything as the value if I click Landsat 8 under landsat8 collection1 and surface reflectance?
sorry for messy code & english.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions