main.py 637 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. import draganddrop as dnd
  3. from nicegui import ui
  4. def handle_drop(card: dnd.card, location: str):
  5. ui.notify(f'"{card.text}" is now in {location}')
  6. with ui.row():
  7. with dnd.column('Next', on_drop=handle_drop):
  8. dnd.card('Improve Documentation')
  9. dnd.card('Simplify Layouting')
  10. dnd.card('Provide Deployment')
  11. with dnd.column('Doing', on_drop=handle_drop):
  12. dnd.card('Release Standalone-Mode')
  13. with dnd.column('Done', on_drop=handle_drop):
  14. dnd.card('Invent NiceGUI')
  15. dnd.card('Test in own Projects')
  16. dnd.card('Publish as Open Source')
  17. ui.run()