"RokuChris" wrote:
Maybe you need to be referencing the local variable called xml instead of the global variable called m.xml
"squirreltown" wrote:"RokuChris" wrote:
Maybe you need to be referencing the local variable called xml instead of the global variable called m.xml
"RokuMarkn" wrote:
I think you need to provide a little more context about what changes you've made. Looking at the deviantart example, there is a loop that runs through all the photos which prints each title. These titles are correct for me; I assume the same is true for you. Is that the place where you're calling AddButton? I suspect you're calling AddButton somewhere after this loop, when it has finished iterating the photos, so "photo" is no longer valid -- it still refers to the last one in the list.
--Mark
"RokuMarkn" wrote:
Hm, I didn't understand your last sentence at all, but let me try again. The loop in lines 103-112 is going through each photo and printing its title. If you want a button per title, that's the place where you need to create the button. If you're not trying to make one button per title then I don't understand what you're trying to do so you'll have to explain it. Maybe you want a button to show the currently playing item? That's completely different -- you'd have to extract each title from the list when you get the isPlaybackPosition message for that item.
--Mark
curr_photo = photolist[onscreenphoto]
slideshow.AddButton(btn_bookmark, curr_photo.GetTitle())
"RokuMarkn" wrote:
In that case, as I said, you should extract the title when you get the PlaybackPosition event, save it in a variable, and use it for your button later. For example, add
curr_photo = photolist[onscreenphoto]
in the PlaybackPosition handler, and then call
slideshow.AddButton(btn_bookmark, curr_photo.GetTitle())
to add your button.
--Mark