cant asked to fucus?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
beginerr0 Offline
Junior Member
Posts: 20
Joined: Oct 2012
Reputation: 0
Question  cant asked to fucus?
Post: #1
hello , everyone

when my addon UI display on the screen

simultaneously,i move my mouse then xbmc crash

i view the xbmc_crash log , it give me an error like this

ERROR: Control 500 in window 13000 has been asked to focus, but it can't

i check the ui xml file of my addon,i find control id = 500, but i cant find the window id 13000

how should i do to solve this problem?
find quote
olivaar Offline
Junior Member
Posts: 36
Joined: May 2013
Reputation: 1
Post: #2
i didnt remember exactly, but xbmc generate window ids for your custom windows
if you define an own id for your window you can check the error again in the log <window id="1234"
a list cannot get get the focus unless it has some existing elements
the elements must exist before the __init__() Call and therefor can only be defined in the xml
if you define a default control, the control should be already generated before this call
find quote
beginerr0 Offline
Junior Member
Posts: 20
Joined: Oct 2012
Reputation: 0
Post: #3
I observe the problem for a while
maybe the problem is caused by
PHP Code:
<defaultcontrol always="true">500</defaultcontrol
because i must do something and get the control by my python code, i am not sure , but it seens like that, must try
(This post was last modified: 2013-07-28 04:22 by beginerr0.)
find quote