how to use xbmcgui.Dialog().browse()

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
alanckl Offline
Junior Member
Posts: 16
Joined: Oct 2005
Reputation: 0
Post: #1
hi all,

do you know how to use the new function xbmcgui.dialog().browse()? what should be pass for the integer parameter "type"?

when i call the function, i just got the systemerror like this. "systemerror: error return without exception set". is it a bug? please help.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,938
Joined: Dec 2004
Reputation: 17
Post: #2
i'm currently going through the python docs and will submit a more helpful description.


import xbmcgui
dialog = xbmcgui.dialog()
dialog.browse(0,"title","myprograms")



(type,heading, shares[, extra])
type:
0 = showandgetdirectory
1 = showandgetfile
2 = showandgetimage
heading: your title
shares: from your sources.xml (use to be xboxmediacenter.xml)
<myprograms>
<video>
<music>
<pictures>
<files>

http://home.no.net/thor918/xbmc/xbmcgui.html#dialog

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
alanckl Offline
Junior Member
Posts: 16
Joined: Oct 2005
Reputation: 0
Post: #3
thanks a lot!!!

i'll try that again. Smile
find quote