You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a newbie and plan to learn kivy. Now I got stuck on one problem. I renamed some class AddLocationForm name as MockTurtleForm in each related replace, then when I run main.py, it reported:
Also, I found all words of shipshape boxlayouts were cornered, that is, in lower-left corner on kivy screen.
I input some key words and found something maybe helpful in https://kivy.org/doc/stable/_modules/kivy/factory.html, then I did it in command line as instructions told , used Factory.unregister('AddLocationForm', cls=AddLocationForm) and Factory.register('MockTurtleForm', MockTurtleForm), but it failed as well as in texteditor. My question is, My first class is weather, not the lastest MockTurtleForm, so AddLocation should be not permanent. If so, why did it happen?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I am a newbie and plan to learn kivy. Now I got stuck on one problem. I renamed some class
AddLocationFormname asMockTurtleFormin each related replace, then when I run main.py, it reported:[WARNING] [Factory ] Ignored class "MockTurtleForm" re-declaration. Current - module: None, cls: <class '__main__.MockTurtleForm'>, baseclass: None, filename: None. Ignored - module: None, cls: None, baseclass: BoxLayout, filename: C:\Users\sky\python_Work\kivy_project\weather.kv.Also, I found all words of shipshape boxlayouts were cornered, that is, in lower-left corner on kivy screen.
I input some key words and found something maybe helpful in
https://kivy.org/doc/stable/_modules/kivy/factory.html, then I did it in command line as instructions told , usedFactory.unregister('AddLocationForm', cls=AddLocationForm)andFactory.register('MockTurtleForm', MockTurtleForm), but it failed as well as in texteditor. My question is, My first class isweather, not the lastestMockTurtleForm, so AddLocation should be not permanent. If so, why did it happen?Here is
kivy.file:pythoncode is:All reactions