2014-10-30, 00:27
Since the Python API is more powerful than the skinning API in most aspects I think it would be useful to expose some Python functions to skinners.
This script does that: https://github.com/phil65/script.toolbox
Example:
This code:
would create a dialog like this:
When the user clicks on a listitem then the corresponding builtin will be executed.
This way skinners can make use of DialogSelect which can be very useful on some occasions for settings with more than 2 states. At the moment there is no good way for skinners to implement those type of buttons since also spincontrol cannot be used.
DialogOK and DialogYesNo are also implemented.
This script does that: https://github.com/phil65/script.toolbox
Example:
This code:
PHP Code:
<onclick>SetProperty(Dialog.1.Label,Test)</onclick>
<onclick>SetProperty(Dialog.1.BuiltIn,builtin1)</onclick>
<onclick>SetProperty(Dialog.2.Label,Test 2)</onclick>
<onclick>SetProperty(Dialog.2.BuiltIn,builtin2)</onclick>
<onclick>SetProperty(Dialog.3.Label,Test 3)</onclick>
<onclick>SetProperty(Dialog.3.BuiltIn,builtin3)</onclick>
<onclick>SetProperty(Dialog.4.Label,Test 4)</onclick>
<onclick>SetProperty(Dialog.4.BuiltIn,builtin4)</onclick>
<onclick>RunScript(script.toolbox,info=selectdialog,header=This is a custom dialog)</onclick>
would create a dialog like this:
When the user clicks on a listitem then the corresponding builtin will be executed.
This way skinners can make use of DialogSelect which can be very useful on some occasions for settings with more than 2 states. At the moment there is no good way for skinners to implement those type of buttons since also spincontrol cannot be used.
DialogOK and DialogYesNo are also implemented.