Skip to content Skip to sidebar Skip to footer

How Can I Get Selected Text In Another Textinput. Getting Error "'screenmanager' Object Has No Attribute 'widget_1'"

I am trying to get the selected text from recycleview to the txt_input1 but it is throwing error. It was working in the separate .py file but then I transfered the code into my run

Solution 1:

You have changed the structure of your App from your previous question. Your App now uses a ScreenManager. So the code accessing the TextInput must change to account for that:

        App.get_running_app().root.get_screen('body_screen').widget_1.ids.txt_input1.text = str(rv.data[index].get("text"))

Post a Comment for "How Can I Get Selected Text In Another Textinput. Getting Error "'screenmanager' Object Has No Attribute 'widget_1'""