How to make edge in networkx a button?

Viewed 22

I want that when I press on an edge, a windows with info will pop up.

How to do that? Is it possible?

Example of my code:

my_graph = networkx.Graph()

to_print = set()

for network_profile in network_profiles:
    for connected_profile in network_profile.profile_connections:
        to_print.add((network_profile.ip_address, connected_profile.ip_address))

my_graph.add_edges_from(list(to_print))
networkx.draw(my_graph, with_labels=True, font_weight='bold')
matplotlib.pyplot.show()
0 Answers
Related