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_modeemit_constants.TxRxMode, optional

Specifies whether to get tx or rx band names. The default is None, 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.