minuitdixhuit opened this issue on Jun 27, 2020 ยท 5 posts
adp001 posted Sat, 27 June 2020 at 8:27 AM
def MovieMakerFileSelection(mm):
assert isinstance(mm, poser.MovieMakerType)
choices = mm.OutputFormats()
with wx.SingleChoiceDialog(None,
caption="Moviemaker Filetypes",
message="Select one",
choices=choices,
style=wx.CHOICEDLG_STYLE
) as dlg:
if dlg.ShowModal() == wx.ID_OK:
return dlg.GetSelection()
else:
return None
format = MovieMakerFileSelection(mm)
if format:
mm.SetMovieFormat(format)