2016-03-08, 15:50
Hi everyone, and please for help
I can't set default focus for windowDialog. After open my addon everything is right, but when i slide away mouse arrow from buttons then i can't focus any buttons by pressing arrow keys, only option is sliding mouse arrow back on button.
In my code is few more buttons which have set navigations between them.
I can't set default focus for windowDialog. After open my addon everything is right, but when i slide away mouse arrow from buttons then i can't focus any buttons by pressing arrow keys, only option is sliding mouse arrow back on button.
Code:
class PopupWindow(xbmcgui.WindowDialog):
def __init__(self):
#setting basic controls
self.searchButton = xbmcgui.ControlButton(1100, 15, 160, 50, 'Search', font='Font40', alignment=0x00000006, noFocusTexture=xbmcaddon.Addon().getAddonInfo('path')+'/bottom_line.png', focusTexture=xbmcaddon.Addon().getAddonInfo('path')+'/focus_bottom_line.png', focusedColor='0xFFAAAAAA')
self.addControl(self.searchButton)
#and rest of code