spire-presentation 10.12.0__py3-none-macosx_10_7_universal.whl → 11.2.0__py3-none-macosx_10_7_universal.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.
@@ -111,20 +111,20 @@ class SpireException(Exception):
111
111
  self.message = message
112
112
  super().__init__(self.message)
113
113
 
114
+
114
115
  def CallCFunction(func, *args, **kwargs):
115
116
  if hasattr(func, 'argtypes') and func.argtypes is not None:
116
117
  new_argtypes = [c_int if arg == c_bool else arg for arg in func.argtypes]
118
+ if len(new_argtypes) == len(args):
119
+ new_argtypes.append(POINTER(c_uint64))
117
120
  func.argtypes = new_argtypes
118
121
 
119
- data = create_string_buffer(sizeof(c_uint64))
120
- old_value = 0
121
- # Write the initial values to the allocated memory
122
- memmove(data, byref(c_uint64(0)), sizeof(c_uint64))
123
- args = list(args) +[data]
122
+ error_code_buffer = c_uint64(0)
123
+ args = list(args) + [byref(error_code_buffer)]
124
124
 
125
125
  result = func(*args, **kwargs)
126
- modified_value = cast(data, POINTER(c_uint64)).contents.value
127
- if old_value != modified_value:
126
+ modified_value = error_code_buffer.value
127
+ if modified_value != 0:
128
128
  info = PtrToStr(modified_value)
129
129
  raise SpireException(info)
130
130
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spire-presentation
3
- Version: 10.12.0
3
+ Version: 11.2.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=Vo2z_qjiYCxQ9uCA6JkCs6zm56GmB4AwrSTzwegPo0w,17075
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.dylib,sha256=oO1ZY3KM868myOcmGDGFxwejhSFmSp1Okpct4PaiSYE,102349008
389
+ spire/presentation/lib/Spire.Presentation.Base.dylib,sha256=W0RuKGXZfPD7awxkV7Ro1ZCaYqxB_Ng1NnVV1gnogEU,102018320
390
390
  spire/presentation/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
391
391
  spire/presentation/lib/libSkiaSharp.dylib,sha256=oAMGuiK51CiHc6D512ZbnxPLX4AIZijIOsuDCjxx_MY,15217856
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.12.0.dist-info/METADATA,sha256=Tq_lrjAYkEv0o5Q4tBCOEt4CDt-vjwg5sjDanDnEKIk,8377
438
- spire_presentation-10.12.0.dist-info/WHEEL,sha256=rveUkH9ikE0cU3Nz1HwKMHStISBLJFzA2EmrnmYpe3c,110
439
- spire_presentation-10.12.0.dist-info/top_level.txt,sha256=WxTypv85IOx5WpDWDS_HpIgu5l722KWSil7EHZwF08M,6
440
- spire_presentation-10.12.0.dist-info/RECORD,,
437
+ spire_presentation-11.2.0.dist-info/METADATA,sha256=bIvxs2n8alMSLIN7DnmgJ75AH2R7mCOVdn-B9SOw5xI,8376
438
+ spire_presentation-11.2.0.dist-info/WHEEL,sha256=rveUkH9ikE0cU3Nz1HwKMHStISBLJFzA2EmrnmYpe3c,110
439
+ spire_presentation-11.2.0.dist-info/top_level.txt,sha256=WxTypv85IOx5WpDWDS_HpIgu5l722KWSil7EHZwF08M,6
440
+ spire_presentation-11.2.0.dist-info/RECORD,,