orb.channels.channel_widget module

class orb.channels.channel_widget.ChannelWidget(**kwargs)

Bases: Widget

This is the Channel line ———— between two nodes. The actual line Segments are implemented by the Segment class. It also handles animating the 1M sat circles as HTLCs occur, and flashing the channel.

anim_htlc(htlc)
anim_incoming(s=10)
anim_outgoing(s=10)
anim_to_pos(points)
animate_highlight(*args)
channel

the channel object

flash(rgba)
property local_col
property pending_col
points

where the channel starts and ends

property remote_col
property selected
set_selected(widget, channel)
update(*args)
width

the girth of the channel

orb.channels.channel_widget.op()