first commit

This commit is contained in:
2025-09-27 18:02:29 +02:00
commit 5b03db2f52
15097 changed files with 3280772 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/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()