you have plenty of Python (and Java) libraries with enough UI components for whatever you want although web beats everything in terms of ease of distribution
I mean, I wanted a whiteboard for sketching, and in JS, there's already a popular project called Excalidraw that can be imported in 3 lines. In Python/Java, I'd have to build one from scratch.