I try to use the circulardatetimepicker widget from the garden and I am facing an issue. I think it is related to kivy and not the widget so I am posting it in here.
When trying to run an application with the CircularTimePicker as root widget, the application runs correctly, but when I put the widget as a child of another (like a BoxLayout), the initialisation of the widget fails.
During the initialization phase, the widget attempts to get access to the self.ids dictionary. In the former case, it is filled correctly, in the later case, it is empty.
For instance, use that main.py
from kivy.app import App
class MyApp(App):
pass
if __name__ == "__main__":
MyApp().run()
Port of https://github.com/kivy/kivy/issues/3714. The solution is to clock schedule a method in init where those binds which reference an id are done. https://github.com/kivy-garden/garden.circulardatetimepicker/blob/master/__init__.py#L572
Original text:
Hi.
I try to use the circulardatetimepicker widget from the garden and I am facing an issue. I think it is related to kivy and not the widget so I am posting it in here.
When trying to run an application with the CircularTimePicker as root widget, the application runs correctly, but when I put the widget as a child of another (like a BoxLayout), the initialisation of the widget fails.
During the initialization phase, the widget attempts to get access to the self.ids dictionary. In the former case, it is filled correctly, in the later case, it is empty.
For instance, use that main.py
The following my.kv file will work well:
While this one raises an error: