hytos / DTI_PID / DTI_PID / TextInfo.py @ d86f328a
이력 | 보기 | 이력해설 | 다운로드 (772 Bytes)
1 |
class TextInfo(): |
---|---|
2 |
def __init__(self, text, x, y, w, h, angle): |
3 |
self.text = text
|
4 |
self.x = x
|
5 |
self.y = y
|
6 |
self.w = w
|
7 |
self.h = h
|
8 |
self.angle = angle
|
9 |
|
10 |
def setText(self, text): |
11 |
self.text = text
|
12 |
|
13 |
def getText(self): |
14 |
return self.text |
15 |
|
16 |
def setX(self, x): |
17 |
self.x = x
|
18 |
|
19 |
def getX(self): |
20 |
return int(self.x) |
21 |
|
22 |
def setY(self, y): |
23 |
self.y = y
|
24 |
|
25 |
def getY(self): |
26 |
return int(self.y) |
27 |
|
28 |
def setW(self, w): |
29 |
self.w = w
|
30 |
|
31 |
def getW(self): |
32 |
return int(self.w) |
33 |
|
34 |
def setH(self, h): |
35 |
self.h = h
|
36 |
|
37 |
def getH(self): |
38 |
return int(self.h) |
39 |
|
40 |
def setAngle(self, angle): |
41 |
self.angle = angle
|
42 |
|
43 |
def getAngle(self): |
44 |
return self.angle |