self.menu = [
"???",
None,
"?? ??",
"???? ??",
"???? ?? ? ?? ??",
None,
"??",
{"?? ??": ["???", "??"]},
{"?? ??": ["???", "??"]},
None,
"XTranslator 2.0.0"
]
The above code is the current my rumps menu configuration.
@rumps.clicked("?? ??", "???")
def fromKoBtn(self, sender):
self.srcLang = "ko"
sender.state = not sender.state
# ??
@rumps.clicked("?? ??", "??")
def fromEnBtn(self, sender):
self.srcLang = "en"
sender.state = not sender.state
When a particular item is clicked, I want to change the state of all the remaining elements to zero.
What should I do?
question from:
https://stackoverflow.com/questions/65897486/how-to-rumps-off-different-element-state 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…