RadioSet: missing method action_toggle_button #4569
-
Hi, I'm a bit confused: In the docs I read about a from textual.app import App
from textual.widgets import Button, RadioButton, RadioSet
class Main(App):
def compose(self):
yield Button('Next Choice')
with RadioSet():
yield RadioButton('One')
yield RadioButton('Two')
yield RadioButton('Three')
def on_button_pressed(self, event):
self.query_one(RadioSet).action_next_button()
self.query_one(RadioSet).action_toggle_button()
# self.query_one(RadioSet).action_toggle()
if __name__ == "__main__":
app = Main()
app.run() If I replacie I'm working with textual version 0.52.1 Did I miss some changes? By the way: Is there a elegant way to choose one of the Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You're working with a version of Textual that is older than the documentation. You may first want to update to a more recent version. |
Beta Was this translation helpful? Give feedback.
You're working with a version of Textual that is older than the documentation. You may first want to update to a more recent version.