- def OnLoadURI(self, evt):
- dlg = wx.TextEntryDialog(self, "URL:", "Please enter the URL of a media file",
- "http://www.mwscomp.com/movies/grail/tim-the-enchanter.avi")
- if dlg.ShowModal() == wx.ID_OK:
- url = dlg.GetValue()
- if not self.mc.LoadFromURI(url):
- wx.MessageBox("Unable to load %s." % url,
- "ERROR", wx.ICON_ERROR | wx.OK)
- else:
- self.mc.SetBestFittingSize()
- self.GetSizer().Layout()
- dlg.Destroy()
-
-