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