Created
August 28, 2011 18:09
-
-
Save sindresorhus/1176995 to your computer and use it in GitHub Desktop.
Boxee - Picture player
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mc | |
mc.ActivateWindow(14000) | |
item_list = mc.ListItems() | |
item = mc.ListItem(mc.ListItem.MEDIA_PICTURE) | |
item.SetPath('http://sindresorhus.com/slider-img/1.jpg') | |
item.SetImage(0, 'http://sindresorhus.com/slider-img/1.jpg') | |
item.SetContentType('image/jpeg') | |
item.SetLabel('Title') | |
item_list.append(item) | |
item2 = mc.ListItem(mc.ListItem.MEDIA_PICTURE) | |
item2.SetPath('http://sindresorhus.com/slider-img/2.jpg') | |
item2.SetImage(0, 'http://sindresorhus.com/slider-img/2.jpg') | |
item2.SetContentType('image/jpeg') | |
item2.SetLabel('Title 2') | |
item_list.append(item2) | |
mc.GetWindow(14000).GetList(140).SetItems(item_list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<window type="window" id="14000"> | |
<defaultcontrol>101</defaultcontrol> | |
<allowoverlay>no</allowoverlay> | |
<controls> | |
<control type="group"> | |
<!-- slideshow --> | |
<control type="list" id="140"> | |
<posx>0</posx> | |
<posy>0</posy> | |
<width>1280</width> | |
<height>720</height> | |
<onleft>-</onleft> | |
<onright>-</onright> | |
<onup>-</onup> | |
<ondown>-</ondown> | |
<scrolltime>200</scrolltime> | |
<pagecontrol>-</pagecontrol> | |
<orientation>horizontal</orientation> | |
<itemlayout width="1280" height="720" /> | |
<focusedlayout width="1280" height="720"> | |
<control type="multiimage"> | |
<animation effect="fade" time="200">VisibleChange</animation> | |
<posx>538</posx> | |
<posy>306</posy> | |
<width>200</width> | |
<height>200</height> | |
<imagepath>loading</imagepath> | |
<timeperimage>80</timeperimage> | |
<fadetime>10</fadetime> | |
<pauseatend>0</pauseatend> | |
<randomize>false</randomize> | |
<loop>yes</loop> | |
<aspectratio>keep</aspectratio> | |
</control> | |
</focusedlayout> | |
</control> | |
</control> | |
</controls> | |
</window> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment