Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Help with labels #1027

Unanswered
nbdynoze asked this question in Q&A
Discussion options

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

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /