-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshadow.py
More file actions
25 lines (17 loc) · 688 Bytes
/
shadow.py
File metadata and controls
25 lines (17 loc) · 688 Bytes
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
from RVObject import RVObject
import xml.etree.ElementTree as xmltree
class shadow(RVObject):
def __init__(self, xmlelement=None):
self.rvXMLIvarName = "shadow"
self.shadowtext = "0.000000|0 0 0 0.3333333432674408|{4, -4}"
if xmlelement is None:
return
self.deserializexml(xmlelement)
def deserializexml(self, xmlelement):
self.rvXMLIvarName = xmlelement.get('rvXMLIvarName')
self.shadowtext = xmlelement.text
def serializexml(self):
xmlelement = xmltree.Element('shadow')
xmlelement.set('rvXMLIvarName', self.rvXMLIvarName)
xmlelement.text = self.shadowtext
return xmlelement