-
Notifications
You must be signed in to change notification settings - Fork 842
Help with labels
#1027
-
I am trying to get a list\array of label values for a label name.
c = Enum('ChannelStatus', 'This shows Started or Stopped',labelnames=["ChannelName"],states=["on","off"])
c.labels("MyChannelNameA").state("on")
c.labels("MyChannelNameB").state("on")
c.labels("MyChannelNameA").state("off")
c.labels("MyChannelNameB").state("off")
I want to get a list of Label Values for the above. I cannot seem to find the syntax for this!!!
I tried this and many other things, can't seem to figure it out!!!
mylabels = c._labelvalues
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment