AndreMiras / PyWallet

Cross platform Ethereum Wallet built with Python and Kivy
MIT License
64 stars 27 forks source link

Lazy loading widgets #71

Open AndreMiras opened 7 years ago

AndreMiras commented 7 years ago

Most of the Screen, BottomNavigation and other widgets are not lazy loaded. It means if we perform expensive computation in some of the widget setup() method, the whole application will lag.

AndreMiras commented 7 years ago

Regarding the Screen, it's probably by design. We could load the Screen dynamically using ScreenManager.switch_to()

AndreMiras commented 7 years ago

I've worked on it partly (using \add_widget()`), using but we still need to check all the other different places. See changeset: https://github.com/AndreMiras/PyWallet/commit/1de174e800f0459df341ae20d72de02d1c7a07e9#diff-0c81b9c94c68ea34c497c1fa52daee56R839