Nov-26-2018, 01:35 PM
Trouble again...
all that code in python looked very cluttered, so i cleaned up the code rewriting most of the organization in kv. Now the program starts up and runs the first time and then i get this error:
kindly advice...
all that code in python looked very cluttered, so i cleaned up the code rewriting most of the organization in kv. Now the program starts up and runs the first time and then i get this error:
Error:Traceback (most recent call last):
File "/home/bunny/Desktop/App/new3.py", line 257, in <module>
main_root().run()
File "/usr/lib/python3/dist-packages/kivy/app.py", line 826, in run
runTouchApp()
File "/usr/lib/python3/dist-packages/kivy/base.py", line 502, in runTouchApp
EventLoop.window.mainloop()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 727, in mainloop
self._mainloop()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 460, in _mainloop
EventLoop.idle()
File "/usr/lib/python3/dist-packages/kivy/base.py", line 340, in idle
self.dispatch_input()
File "/usr/lib/python3/dist-packages/kivy/base.py", line 325, in dispatch_input
post_dispatch_input(*pop(0))
File "/usr/lib/python3/dist-packages/kivy/base.py", line 291, in post_dispatch_input
wid.dispatch('on_touch_up', me)
File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "/usr/lib/python3/dist-packages/kivy/uix/scrollview.py", line 848, in on_touch_up
if self.dispatch('on_scroll_stop', touch):
File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "/usr/lib/python3/dist-packages/kivy/uix/scrollview.py", line 887, in on_scroll_stop
self.simulate_touch_down(touch)
File "/usr/lib/python3/dist-packages/kivy/uix/scrollview.py", line 607, in simulate_touch_down
ret = super(ScrollView, self).on_touch_down(touch)
File "/usr/lib/python3/dist-packages/kivy/uix/widget.py", line 460, in on_touch_down
if child.dispatch('on_touch_down', touch):
File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "/usr/lib/python3/dist-packages/kivy/uix/widget.py", line 460, in on_touch_down
if child.dispatch('on_touch_down', touch):
File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "/usr/lib/python3/dist-packages/kivy/uix/behaviors/button.py", line 151, in on_touch_down
self.dispatch('on_press')
File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1138, in kivy._event.EventObservers._dispatch
File "/home/bunny/Desktop/App/new3.py", line 227, in <lambda>
question = Button(text= question, size=(480, 40), size_hint=(1, None), on_press= lambda question: self.question_being_read(subject, question))
File "/home/bunny/Desktop/App/new3.py", line 168, in question_being_read
root.ids.multi_button.on_press = lambda : self.clock_caller(subject, row, start=True)
File "kivy/properties.pyx", line 838, in kivy.properties.ObservableDict.__getattr__
File "kivy/properties.pyx", line 832, in kivy.properties.ObservableDict._weak_return
File "kivy/weakproxy.pyx", line 40, in kivy.weakproxy.WeakProxy.__class__.__get__
File "kivy/weakproxy.pyx", line 26, in kivy.weakproxy.WeakProxy.__ref__
ReferenceError: weakly-referenced object no longer exists
I removed all the Factory imports and made them static. But the basic layout consists of a carousel which i did not make static. So when i press a button, then go back to a previous slide and press another button, it crashes..kindly advice...