-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_with_python.py
84 lines (51 loc) · 1.39 KB
/
html_with_python.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
class tstyle:
def __init__(self, text_color, font_size):
#style attributes
self.text_color = text_color;
font_size = font_size;
# many are there
def get_details(self):
print(f"for tag {__class__.__name__} : ")
print(f"text_color = {__class__.text_color}")
print(f"font_size = {__class__.font_size}")
class ttitle:
def __init__(self):
self.content ="";
self.inner = []
def get_details(self):
print(f"for tag {__class__.__name__} : ")
print(f"content = {self.content}")
class thead:
def __init__(self):
self.inner = []
def tappend(self,tag):
self.inner.append(tag)
class tp:
def __init__(self):
self.content = "";
self.style =[];
self.id = "";
self.classs = [];
self.inner = [];
def tappend(self, tag):
self.inner.append(tag)
class tdiv:
def __init__(self):
self.inner = [];
self.style = [];
self.id = "";
self.classs = [];
def tappend(self, tag):
self.inner.append(tag)
class tbody:
def __init__(self):
self.inner = [];
self.style = [];
self.classs = [];
def tappend(self, tag):
self.inner.append(tag)
class thtml:
def __init__(self):
self.inner = []
def tappend(self, tag):
self.inner.append(tag)