Loading directory issue

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
moh-san Offline
Junior Member
Posts: 25
Joined: Aug 2012
Reputation: 0
Post: #1
Hi guys,

Can someone explain why I get the "Loading directory" box when I just want to use the following code?

Code:
import xbmc, xbmcgui

class MyClass(xbmcgui.Window):
  print 'hello world'
  
mydisplay = MyClass()
mydisplay .doModal()
del mydisplay

Thanks,
(This post was last modified: 2012-10-19 11:57 by moh-san.)
find quote
sphere Offline
Posting Freak
Posts: 807
Joined: Jul 2009
Reputation: 36
Location: Germany
Post: #2
I guess you are using a plugin extension point but wanted to create a script.

In short: A plugin provides virtual directories, a script creates its own gui.

Use:
Code:
<extension point="xbmc.python.script" library="script.py"/>
Not:
Code:
<extension point="xbmc.python.pluginsource" library="script.py"/>

regards,
sphere
find quote
moh-san Offline
Junior Member
Posts: 25
Joined: Aug 2012
Reputation: 0
Post: #3
Hi Sphere,

Thank you for you reply, this works much better Smile

san
(This post was last modified: 2012-10-19 19:58 by moh-san.)
find quote