On Jan 2, 2011, at 8:22 PM, OKB (not okblacke) wrote:

>       I just did this in my panel's afterInit:
> 
> self.media = dabo.ui.dMediaControl(self, Source="DSCF0086-2.AVI", 
> ShowControls=True)
> self.Sizer.append(self.media, halign="center", border=100)
> 
>       If I do that, the control doesn't actually show up at all.  It's 
> there in some sense, though, because if I set up a button to call the 
> control's play() method, I hear the audio playing, even though no video 
> frame appears.


        I played around some more this afternoon, and managed to see what you 
were talking about. My earlier tests had everything set up just right, so I 
never saw this before. I've posted a change today that calls self.scale() upon 
a successful load; try this out without your modification and see if this fixes 
it for you.

> I managed to avoid using callAfterInterval by instead binding the 
> MediaControl's EVT_MEDIA_LOADED event to a method that just runs the 
> form's Sizer.Layout().

        Try to get in the habit of not working at the wx level, as it can get 
confusing some times. Our goal is to wrap the controls well enough that you 
shouldn't have to drop to the wx level to do what you need. It would be better 
to get used to the Dabo events, as we try to include the event information is a 
much more accessible format. In this case, you should bind the 
dEvents.MediaLoaded event instead.



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to