~/talk

How to build a cross-platform graphical user interface with Python

Talkat PyCon AU 2023 · 2023-08-18..08-22· [frontend-architecture]
slides:none on file

Claim: Python can produce truly native cross‑platform GUIs using the BeeWare suite, notably toga is pure Python, with native widgets on macOS, Windows, Linux, iOS, Android, web and a console alpha. Demonstrates packaging via Briefcase using a libpython interpreter on mobile, async event handlers (or generator yielding) to avoid UI blocking, a dummy backend for automated testing, native API fallbacks, and surprising sizes: PySide ~144 MB plus 255 MB web add‑on versus 500 kilobytes for toga.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04About Beware suite
  3. 2:49Need a GUI?
  4. 4:35Native app benefits
  5. 6:18Choosing Python GUI toolkit
  6. 9:05Why Beware and Toga
  7. 11:09GUI app structure
  8. 12:55Core GUI components
  9. 13:15Layout strategies
  10. 16:45Cross-platform look
  11. 18:49Event loop explained
  12. 20:18Handling long-running tasks without freezing
  13. 22:24Async event handling
  14. 23:06Background workers
  15. 24:09File paths in apps
  16. 25:12Testing GUI applications effectively
  17. 26:55Platform features
  18. 27:59When to drop toolkits
  19. 28:40Resources and next steps
  20. 29:21Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.