get_all_band_nodes#
- Revision.get_all_band_nodes(radio: RadioNode, tx_rx_mode: TxRxMode = None, enabled_only: bool = False) list[Band]#
Returns all the Bands within a Radio
- Parameters:
- radio: RadioNode
The radio to iterate through.
- tx_rx_mode
emit_constants.TxRxMode,optional Specifies whether to get
txorrxband names. The default isNone, in which case the names of all enabled bands are returned.- enabled_onlybool
If True, only returns Band nodes that are enabled, otherwise it returns all Band nodes.
- Returns:
- bands:
list[Band] List of all Band (nodes) in a radio.
- bands: