-
Notifications
You must be signed in to change notification settings - Fork 1
/
AcroExchPoint.py
37 lines (32 loc) · 1017 Bytes
/
AcroExchPoint.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! python3, this code written by kubikanber, 09.11.2018, author: kubikanber
# AcroExch.Point
# Defines the location of an AcroPoint.
#
# Properties
# The Point object has the following properties.
#
# Property####Description###############################################################################################
#
# X
#
# Gets or sets the x-coordinate of an AcroPoint.
#
# Y
#
# Gets or sets the y-coordinate of an AcroPoint.
########################################################################################################################
from win32com.client.dynamic import Dispatch
class Point:
def __init__(self, point=None):
if point is None:
self.point = Dispatch("AcroExch.Point")
else:
self.point = point
def x(self, value=None):
if value is not None:
self.point.X = value
return self.point.X
def y(self, value=None):
if value is not None:
self.point.Y = value
return self.point.Y