resizing a media ctrl after creation
Nathan smith <[email protected]> Sun, 19 Dec 2021 16:32:24 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hi list,
I was wondering, is it possible to resize a media control after you have=20
created it?
I have the following in the code that adds the control to my screen:
=C2=A0 hbox4 =3D wx.BoxSizer(wx.HORIZONTAL)
=C2=A0 self.mediactrl=3Dwx.media.MediaCtrl(panel, size(700, 700),=20
style=3Dwx.media.MEDIACTRLPLAYERCONTROLS_NONE)
=C2=A0 self.mediactrl.SetName("Video.")
=C2=A0 self.mediactrl.Bind(wx.media.EVT_MEDIA_LOADED, self.beginplay)
=C2=A0 hbox4.Add(self.mediactrl,1,wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)
Then in beginplay I have a clal to play to start the media. I simply=20
wondered if there was a way to resize the control to best fit the video?
I see GetBestSize and assume I could use that when the video has been=20
loaded, but that's about as far as I got.
Best
Nathan
--=20
You received this message because you are subscribed to the Google Groups "=
wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
wxpython-users/edfbce32-52d6-6701-f77d-a4ebf93f8516%40gmail.com.