Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 332 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from wdom.tag import Button, NewTagClass
# Making new class easily
MyButton = NewTagClass('MyButton', 'button', Button, class_='btn')
DefaultButton = NewTagClass('DefaultButton', 'button', MyButton, class_='btn-default')
print(MyButton().html_noid)
print(DefaultButton().html_noid)