-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverTest.py
More file actions
35 lines (19 loc) 路 1.42 KB
/
Copy pathserverTest.py
File metadata and controls
35 lines (19 loc) 路 1.42 KB
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
"""
Las webs hechas con XQuickBox son una estructura de hijos. Todos los hijos son componentes, incluso la aplicaci贸n principal. Por tanto, podr铆amos definir que la estructura de una web XQuickBox es una red de hijos con hijos, una forma un poco m谩s literal de ver los archivos HTML, que incluso su objeto principal (<!DOCTYPE html></html>), que contiene TODAS las webs, se podr铆an usar como hijos de por ejemplo, un "<div>" cualquiera, aunque no se deba hacer.
XQuickBox funciona de la misma forma, toda aplicaci贸n tiene un componente equivalente al "<!DOCTYPE html></html>", que representa una App (tambi茅n tiene las mismas propiedades que los dem谩s), y aunque se puede usar como hijo de otros componentes, no se debe hacer.
"""
from Main.HtmlComponents import *
MyQuickWeb = Box(title='funny cats images', metaKeywords=['cats', 'cats lover', 'VIAJE A LAS ESTRELLAS']) # "Box", for practical purposes, it is a web page. A secure and fast environment where you can run it, test it and create it.
MyQuickWeb.content = [
TextComponent(content=['Text me']),
LinkComponent(visibleText='here', url='https://www.youtube.com/watch?v=dQw4w9WgXcQ'),
DivComponent(id='funnyCatsContainer',
content=[
TitleComponent(
content=['See my cats (not are my cats really)']),
ImgComponent(
imageUrl='https://i.ytimg.com/vi/YSHDBB6id4A/maxresdefault.jpg',
altImage = 'a cute cat (with a hat)')
])
]
MyQuickWeb.RunDevMode()