• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8
HOW-TO write GUI settings for XBMC python plugins and scripts (addons)
#46
thanks
I'll try these later and keep in touch
Reply
#47
Is it possible to add more pages to the settings window?

With a lot of settings the "general" view is quickly becoming cluttered, so it would be nice to add an "advanced" view.
Reply
#48
http://trac.xbmc.org/attachment/ticket/9...tings4.zip

has an example script that has categories in settings.xml
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#49
Thank you
Reply
#50
Big Grin Good stuff..

My question is that I have some items that the string can be quite long so how do I make it so when you edit a item that is too long, that it scrolls or the text in the edit box moves to the left as I cursor to the right to see what I am editing in the user interface?


Thanks!
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#51
The Editcontrol automatically does this. I suspect, however, that you're referring to the virtualkeyboard which does not use an editcontrol.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#52
jmarshall Wrote:The Editcontrol automatically does this. I suspect, however, that you're referring to the virtualkeyboard which does not use an editcontrol.

Thanks.
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#53
Exclamation 
I am having a problem when I moved to the 10.0 BETA.. when I goto plugin/addon settings, not all of the settings are showing up. Again it is only in 10.0 (maybe a bug?)

The only items that show for editing or view on the addon setting dialogue are:

streaming_ip
vlc_loc
video_sout
audio_sout
pls_path
thumbs_path
search_engine


My code: (settings.xml)
Code:
settings>

    <setting id="separator" type="lsep" label="30039"/>

    <setting id="streaming_setup" type="text" label="30040" default="" enable="false"/>

    <setting id="streaming_ip" type="text" label="30041" default="224.1.1.152"/>

    <setting id="streaming_port" type="integer" label="30042" default="1152"/>

    <setting id="vlc_loc" type="text" label="30043" default="/usr/bin/vlc"/>

    <setting id="separator" type="lsep" label=""/>

    <setting id="separator" type="lsep" label="30044"/>

    <setting id="video_streaming" type="text" label="30045" default="" enable="false"/>

    <setting id="video_sout" type="text" label="30046" default="--sout=#duplicate{dst=std{access=udp,mux=ts,dst=224.1.1.152:1152}}"/>

    <setting id="video_fc" type="integer" label="30047" default="10"/>

    <setting id="separator" type="lsep" label=""/>

    <setting id="separator" type="lsep" label="30048"/>

    <setting id="audio_streaming" type="text" label="30049" default="" enable="false"/>

    <setting id="audio_sout" type="text" label="30046" default="--sout=#duplicate{dst=std{access=udp,mux=ts,dst=224.1.1.152:1152}}"/>

    <setting id="audio_fc" type="integer" label="30047" default="10"/>

    <setting id="separator" type="lsep" label=""/>

    <setting id="separator" type="lsep" label="30050"/>
    <setting id="pls_path" type="folder" source="files" label="30051" default="special://profle/addon_data/plugin.program.multiroomaudio/MultiroomAVsources/pls_files" />

    <setting id="thumbs_path" type="folder" source="files" label="30001" default="special://profile/UserData/Thumbnails" />

    <setting id="search_engine" type="fileenum" mask="/" values="resources\search_engines\" label="30002" default="Yahoo" />

</settings>
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#54
look here, settings.xml layout has changed a bit
Reply
#55
Amet Wrote:look here, settings.xml layout has changed a bit

Thanks. I did not see anything about int type

Seems that's the one that are not showing up. Any ideas?Big Grin

EDIT....

I got it all working now w/ exception of the int type. Thanks for your help!
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#56
teshephe Wrote:Thanks. I did not see anything about int type

Seems that's the one that are not showing up. Any ideas?Big Grin

this should do it:
Code:
<setting id="audio_fc" type="number" label="bla" default="10"/>
Reply
#57
Amet Wrote:this should do it:
Code:
<setting id="audio_fc" type="number" label="bla" default="10"/>

LOL!!! it's getting hard to keep up with the development! Thanks... that worked.Big Grin
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#58
Anyway to specify a different font for a specific <setting> type="text" ?
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#59
this is r33532 running on Fedora

resources/settings.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <setting id="gpoPath" type="text" label="100" default="/home/xbmc/gpodder-downloads" />
</settings>

resources/language/english/strings.xml
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
    <string id="100">Gpodder Download Directory</string>
</strings>

Selecting addon settings from context menu results in following from debug and no display of settings dialog
Code:
DEBUG: OnKey: 61453 pressed, action is Select
DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
DEBUG: ADDON: cpluff: 'Could not return information about unknown plug-in .'

I can retrieve the setting using
dir = xbmcplugin.getSetting(self._pluginId,'gpoPath') - no problem

Do I need to initialise something in the script?
System info: Asrock ION330HT-BD (Intel Atom 330 4 core i686) connected to Sony KDL-Z5800 TV using hdmi via Onkyo TX-SR507 AV Amp. [Old Config Ubuntu 12.04. (Linux 3.2.0-32-generic-pae ) XBMCBuntu (Eden 11.0 Git:unknown Compiled Mar 24 2012). OpenGL 3.3.0 NVIDIA 280.13] New Config unknown - no working XBMC at moment!
Reply
#60
resources/settings.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<settings>
     <category label="30100">
    <setting id="gpoPath" type="text" label="100" default="/home/xbmc/gpodder-downloads" />
     </category>
</settings>


resources/language/english/strings.xml

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
    <string id="100">Gpodder Download Directory</string>
        <string id="30100">General</string>
</strings>
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8

Logout Mark Read Team Forum Stats Members Help
HOW-TO write GUI settings for XBMC python plugins and scripts (addons)1