That should work. Do you have a small runnable example. Perhaps something else is going on.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51461ee0-64e9-492a-b539-9c5479ee7811n%40googlegroups.com.
.png?part=0.2&view=1)
There is not enough context to see the issue. Please share a minimal, runnable example.
From: Quantumrobs
Sent: Thursday, January 13, 2022 1:09 PM
To: Kivy users support
Subject: Re: [kivy-users] Issue clearing text from a multiline text field
Hi Elliot,
Thank you for getting back to me regarding this issue. The error I printed out while running the script is 'super' object has no attribute '__getattr__'
Attached is the snippet of the .py code and .kv code pertaining to this particular field and function. This particular field is inside a ScrollView, but I am still referencing it the same way I am further up the code when I assign the text to upload to the database, which works fine. I would not think there is a difference in referencing the text in the clear function versus the function grabbing the text for the database. I am using the same reference in both, and both are in the same function.
Thanks.
On Thursday, January 13, 2022 at 2:48:39 PM UTC-5 ElliotG wrote:
That should work. Do you have a small runnable example. Perhaps something else is going on.
From: Quantumrobs
Sent: Thursday, January 13, 2022 12:34 PM
To: Kivy users support
Subject: [kivy-users] Issue clearing text from a multiline text field
Hello. I am trying to clear text fields before leaving a screen. I am able to clear non-multiline fields, but for some reason, I cannot clear the text in the multiline text field.
I am able to use the multiline text input by users for uploads to a database, as well as assign it to variables, but it will not clear using a simple self.ids.add_notes_text.text = "". (The ID of the text field is add_notes_text.)
Is there a different way to do it since it is a multiline text field?
Thanks for the assistance.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51461ee0-64e9-492a-b539-9c5479ee7811n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/0b0b8bec-b995-4eec-b433-5e3bde39131fn%40googlegroups.com.
I generally prefer to look at code I can run. I will take a look. Please also post the full traceback that shows the error.
On Thursday, January 13, 2022 at 2:48:39 PM UTC-5 ElliotG wrote:
That should work. Do you have a small runnable example. Perhaps something else is going on.
From: Quantumrobs
Sent: Thursday, January 13, 2022 12:34 PM
To: Kivy users support
Subject: [kivy-users] Issue clearing text from a multiline text field
Hello. I am trying to clear text fields before leaving a screen. I am able to clear non-multiline fields, but for some reason, I cannot clear the text in the multiline text field.
I am able to use the multiline text input by users for uploads to a database, as well as assign it to variables, but it will not clear using a simple self.ids.add_notes_text.text = "". (The ID of the text field is add_notes_text.)
Is there a different way to do it since it is a multiline text field?
Thanks for the assistance.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51461ee0-64e9-492a-b539-9c5479ee7811n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/0b0b8bec-b995-4eec-b433-5e3bde39131fn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/aa97b7be-0a7a-4875-b299-7c9aa98edb02n%40googlegroups.com.
I suggest removing the try/except block in:
add_participant_submit(self):
You will get a more useful traceback. An except clause with out a specific error being caught – can result in difficult to debug code.
On Thursday, January 13, 2022 at 2:48:39 PM UTC-5 ElliotG wrote:
That should work. Do you have a small runnable example. Perhaps something else is going on.
From: Quantumrobs
Sent: Thursday, January 13, 2022 12:34 PM
To: Kivy users support
Subject: [kivy-users] Issue clearing text from a multiline text field
Hello. I am trying to clear text fields before leaving a screen. I am able to clear non-multiline fields, but for some reason, I cannot clear the text in the multiline text field.
I am able to use the multiline text input by users for uploads to a database, as well as assign it to variables, but it will not clear using a simple self.ids.add_notes_text.text = "". (The ID of the text field is add_notes_text.)
Is there a different way to do it since it is a multiline text field?
Thanks for the assistance.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51461ee0-64e9-492a-b539-9c5479ee7811n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/0b0b8bec-b995-4eec-b433-5e3bde39131fn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/aa97b7be-0a7a-4875-b299-7c9aa98edb02n%40googlegroups.com.