2012-03-18, 18:04
Hi all,
I sent a pull request for getting v1.0.1 included in the repo today.
Two new features were added - one is the option to add extra data as we talked about in this thread.
The other is a function decorator to make it easier to wrap a function in the try..except block required by buggalo.
I use it in my tv guide addon - https://github.com/twinther/script.tvgui...ui.py#L174
Please let me know if you have other ideas for improvements
I sent a pull request for getting v1.0.1 included in the repo today.
Two new features were added - one is the option to add extra data as we talked about in this thread.
The other is a function decorator to make it easier to wrap a function in the try..except block required by buggalo.
I use it in my tv guide addon - https://github.com/twinther/script.tvgui...ui.py#L174
Code:
@buggalo.buggalo_try_except({'method' : 'TVGuide.onInit'})
def onInit(self):
self._hideControl(self.C_MAIN_MOUSE_CONTROLS)
self._showControl(self.C_MAIN_OSD, self.C_MAIN_LOADING)
self.getControl(self.C_MAIN_LOADING_TIME_LEFT).setLabel(strings(BACKGROUND_UPDATE_IN_PROGRESS))
self.setFocus(self.getControl(self.C_MAIN_LOADING_CANCEL))
Please let me know if you have other ideas for improvements