You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
491 B
20 lines
491 B
#!/usr/bin/env python3 |
|
"""Minimal props test.""" |
|
|
|
import badgui as bg |
|
|
|
def minimal_test(): |
|
# Clear pages |
|
bg.app.pages.clear() |
|
|
|
# Use page as context manager and build within it |
|
with bg.page("/test", "Test"): |
|
# Add input with props |
|
input1 = bg.input(placeholder="Styled Input") |
|
input1.props('filled dense color=teal label="Enter text"') |
|
|
|
# Build the project |
|
bg.build("minimal-test-output") |
|
|
|
if __name__ == "__main__": |
|
minimal_test() |