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.
34 lines
1.0 KiB
34 lines
1.0 KiB
#!/usr/bin/env python3 |
|
""" |
|
Example BadGUI application demonstrating basic components and layouts. |
|
""" |
|
|
|
import badgui as bg |
|
|
|
def main(): |
|
# Main title |
|
bg.label("Welcome to BadGUI!", classes=["text-h3", "text-primary"]) |
|
|
|
# Buttons in a row |
|
with bg.row(): |
|
bg.button("Primary Button", classes=["q-mr-md"]) |
|
bg.button("Secondary Button", classes=["q-mr-md"]) |
|
bg.button("Success Button", classes=["bg-positive"]) |
|
|
|
# Input fields in a column |
|
with bg.column(): |
|
bg.input(placeholder="Enter your name", classes=["q-mb-md"]) |
|
bg.input(placeholder="Enter your email", classes=["q-mb-md"]) |
|
bg.input(placeholder="Enter your message", classes=["q-mb-md"]) |
|
|
|
# Another row with mixed content |
|
with bg.row(): |
|
bg.label("Status:") |
|
bg.label("Ready", classes=["text-positive", "text-weight-bold"]) |
|
|
|
# Build the Vue.js project |
|
print("🚀 Building BadGUI project...") |
|
bg.build(output_dir="./example-output", project_name="badgui-example") |
|
|
|
if __name__ == "__main__": |
|
main() |