spire-presentation 10.11.1__py3-none-win_amd64.whl → 11.1.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,7 +120,21 @@ def CallCFunction(func, *args, **kwargs):
120
120
  old_value = 0
121
121
  # Write the initial values to the allocated memory
122
122
  memmove(data, byref(c_uint64(0)), sizeof(c_uint64))
123
- args = list(args) +[data]
123
+
124
+ args = list(args) + [cast(data,POINTER(c_ulong))]
125
+
126
+ if hasattr(func, 'argtypes') and func.argtypes is not None:
127
+ declared_args = len(func.argtypes)
128
+ actual_args = len(args)
129
+ if declared_args != actual_args:
130
+ new_argtypes = list(func.argtypes)
131
+ for i in range(actual_args - declared_args):
132
+ if i == actual_args - declared_args - 1:
133
+ new_argtypes.append(POINTER(c_ulong))
134
+ else:
135
+ new_argtypes.append(c_void_p)
136
+ func.argtypes = new_argtypes
137
+
124
138
 
125
139
  result = func(*args, **kwargs)
126
140
  modified_value = cast(data, POINTER(c_uint64)).contents.value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spire-presentation
3
- Version: 10.11.1
3
+ Version: 11.1.0
4
4
  Summary: A 100% standalone Power Point Python API for Processing Power Point Files
5
5
  Home-page: https://www.e-iceblue.com
6
6
  Author: E-iceblue
@@ -321,7 +321,7 @@ spire/presentation/common/TimeSpan.py,sha256=NjKzlpCPrHvfIaK8fu0Ipcjr_eUWbR9rs5N
321
321
  spire/presentation/common/UInt16.py,sha256=yFB9ZzaFmXDx9yUH28t6MDeFAyRNoM5EhN3eU1aaRL0,7192
322
322
  spire/presentation/common/UInt32.py,sha256=DYsKvxrI7J-0ppCzPM5SCeP5rTszqUqdTPcjiwc26IU,7192
323
323
  spire/presentation/common/UInt64.py,sha256=cHaKw1n6DHkxngz62YPdksXxFSJPotiGEC-Q9qWnLMg,7192
324
- spire/presentation/common/__init__.py,sha256=bNRHgxUN12PGcC5IQBvqKPlFkmSu2fdc7e0qzd7Vz8E,17132
324
+ spire/presentation/common/__init__.py,sha256=55VzO24ICZaFfyxbpwVwkCs5JXWwfNhYarz3px7aikg,17697
325
325
  spire/presentation/diagrams/ISmartArt.py,sha256=q3OjbqNEJER1YQXCGCb_wRsFoB9VMp0JmpSulk6zq8Y,4987
326
326
  spire/presentation/diagrams/ISmartArtNode.py,sha256=c1asUPIf3NeRolvYzHRfWAkadcaFqVavsO1VLrZ52M4,12408
327
327
  spire/presentation/diagrams/ISmartArtNodeCollection.py,sha256=fMrc1qdzJUHKNNhOuKEOqu93rmvr9PPHvrHv9i-MsE8,6963
@@ -386,7 +386,7 @@ spire/presentation/export/SaveToHtmlOption.py,sha256=1mDngk1O2_k7jKZbXN27EnqFalD
386
386
  spire/presentation/export/SaveToPdfOption.py,sha256=PkxL8bPShaERYGbY-XQnUkZfjrk7Ni3kcHT5RQH_H4A,4211
387
387
  spire/presentation/export/SaveToPptxOption.py,sha256=HH723owAGZVdjXxsSh3jfPlFxiQqU8feKfez9x189yE,1335
388
388
  spire/presentation/export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
389
- spire/presentation/lib/Spire.Presentation.Base.dll,sha256=onq7rqOEaBFgjacTqxlYclNqNAtXqyoYJyUSYJXjneg,52649472
389
+ spire/presentation/lib/Spire.Presentation.Base.dll,sha256=FmJgjJkKzJKDopkSvVutLLV7q30GWbzWnVMSaGafXfk,52516352
390
390
  spire/presentation/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
391
391
  spire/presentation/lib/libSkiaSharp.dll,sha256=BD0b-JGZXN5fxQ4aB1J_cy8nWQjGBDvS9nZl7ZYtHY4,9605176
392
392
  spire/presentation/license/LicenseProvider.py,sha256=QpViN9GBtS7mJAbPKofLYK_E9ihOBs-PFP-imq0w1Eo,3876
@@ -434,7 +434,7 @@ spire/presentation/transition/TransitionType.py,sha256=FbT_ielNzyC38DX4hhW_F_U4m
434
434
  spire/presentation/transition/WheelSlideTransition.py,sha256=pUqoBn6UWHqe-tooylTK-_DgLDTVJ5QIFFAm8cWRSRY,1628
435
435
  spire/presentation/transition/ZoomSlideTransition.py,sha256=j-SsuVpYhfMZjhdpsgIdBlO0ugf94ODeOs3VVpYn8Zw,1773
436
436
  spire/presentation/transition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
437
- spire_presentation-10.11.1.dist-info/METADATA,sha256=-3lwgMKuTkgjN-zaYzn9n5U0uI_ySdh4IumTuTiZW90,8553
438
- spire_presentation-10.11.1.dist-info/WHEEL,sha256=AiyVnrmrEuW_cPqhPlarzpb5qtD8ITcBeZKvhXXgyN4,98
439
- spire_presentation-10.11.1.dist-info/top_level.txt,sha256=WxTypv85IOx5WpDWDS_HpIgu5l722KWSil7EHZwF08M,6
440
- spire_presentation-10.11.1.dist-info/RECORD,,
437
+ spire_presentation-11.1.0.dist-info/METADATA,sha256=mC9gt7VbrswmXUvFRj71YI7cD-KoCdDMh3aTg9_5wKU,8552
438
+ spire_presentation-11.1.0.dist-info/WHEEL,sha256=AiyVnrmrEuW_cPqhPlarzpb5qtD8ITcBeZKvhXXgyN4,98
439
+ spire_presentation-11.1.0.dist-info/top_level.txt,sha256=WxTypv85IOx5WpDWDS_HpIgu5l722KWSil7EHZwF08M,6
440
+ spire_presentation-11.1.0.dist-info/RECORD,,