Skip to content

Commit 424f71b

Browse files
update and add and web info
1 parent 2105cce commit 424f71b

File tree

4 files changed

+49
-5
lines changed

4 files changed

+49
-5
lines changed

src/.VisualScript.py.swp

0 Bytes
Binary file not shown.

src/.VisualScript.py.un~

17.5 KB
Binary file not shown.

src/VisualScript.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,30 @@ def webPageLinks(filename, link, textCB):
236236
html.append(structure)
237237
def webPageSound(filename, soundfileCB):
238238
structure = """
239-
<audio>
240-
<source src={soundfileCB} type="audio/mpeg">
241-
</audio>
239+
<audio>
240+
<source src={soundfileCB} type="audio/mpeg">
241+
</audio>
242+
"""
243+
with open(filename, "a") as html:
244+
html.append(structure)
245+
def webPageBGsound(filename, soundfileCB):
246+
structure = f"""
247+
\n<bgsound src={soundfileCB}/>\n
248+
"""
249+
with open(filename, "a") as html:
250+
html.append(structure)
251+
def webPageBodyClosure(filename):
252+
structure = f"""
253+
</body>
254+
"""
255+
with open(filename, "a") as html:
256+
html.append(structure)
257+
def webPageclose(filename):
258+
structure = f"""
259+
</html>
242260
"""
243261
with open(filename, "a") as html:
244262
html.append(structure)
245-
246263

247264

248265
def webPageStart(filename):

src/VisualScript.py~

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,34 @@ def process_code(file):
216216
"""
217217
with open(filename, "a") as html:
218218
html.append(structure)
219-
def webPageContent()
219+
def webPageContent(filename, contentCB):
220+
structure = f"""
221+
\n<p>{filename}</p>\n
222+
"""
223+
with open(filename, "a") as html:
224+
html.append(structure)
225+
def webPageContacts(filename, infoCB):
226+
structure = f"""
227+
\n<address>{infoCB}</address>\n
228+
"""
229+
with open(filename, "a") as html:
230+
html.append(structure)
231+
def webPageLinks(filename, link, textCB):
232+
structure = """
233+
\n <a href={link}>{textCB}</a>\n
234+
"""
235+
with open(filename, "a") as html:
236+
html.append(structure)
237+
def webPageSound(filename, soundfileCB):
238+
structure = """
239+
<audio>
240+
<source src={soundfileCB} type="audio/mpeg">
241+
</audio>
242+
"""
243+
with open(filename, "a") as html:
244+
html.append(structure)
245+
246+
220247

221248
def webPageStart(filename):
222249
# opens html files only

0 commit comments

Comments
 (0)