Fraction: New ctors accept STL container args

This commit is contained in:
FeRD (Frank Dana)
2020-11-21 15:17:18 -05:00
parent 1c8a67333e
commit 762f0e716d
3 changed files with 30 additions and 5 deletions

View File

@@ -127,6 +127,8 @@
/* Instantiate the required template specializations */
%template() std::map<std::string, int>;
%template() std::pair<int, int>;
%template() std::vector<int>;
/* Make openshot.Fraction more Pythonic */
%extend openshot::Fraction {