Usage

Here you will learn how to best use PyWig and take full advantage of the features it has to offer. The table below contains a list of attributes and their parameters. Browse through the table of contents below to search for a specific attribute.

Attributes

Parameters

create_page

title

add_header

header_type, text, style*

add_text

text, style*

add_link

text, link, style*

add_list

list_type, items, style*

add_image

src, alt*, style*

add_video

src

set_background_color

color

add_template

template, items

auto_create_

cooldown, max, filename

save

filename

Creating and Saving

create_page(title)
save(filename)

Adding Elements

Basic Elements

add_header(header_type, text, style=None)
add_text(text, style=None)
add_link(list_type, items, style=None)

Images and Videos

add_image(src, alt=None, style=None)
add_video(src)

Page Customization

set_background_color(color)
auto_create(cooldown, max, filenane)

Templates

Note

To load premade templates, you must import the PyWig extension, templates.

add_template(template, items)