DEV Community

Cover image for Building a calculator using Flet with python

Building a calculator using Flet with python

Arsey Kun on August 29, 2024

Introduction Hello there, Arsey here, a Python speaker, this is my first blog and I'll guide you to build this simple calculator app usi...
Collapse
 
mrcsabatoth profile image
Csaba Toth

Many folks are into Gen AI these days and Python APIs are on par and usually the latest alongside with REST API. However often times companion Dart or Go or other language APIs lag behind, or have some quirks (don't support certain models etc.). So my big interest is: does any of these frameworks (Flet, Kivy, PyQt, Tkinter) allow me to write the Gen AI client side logic (calling APIs etc) in Python and build a mobile app?

Collapse
 
arseytech profile image
Arsey Kun • Edited

Yes, I have tried with flet, it works best with mobile-based frameworks like kivy, and flet, for tkinter and pyQt which are desktop-based frameworks, it's possible but hard.

I'll be making a tutorial on that soon, hint: we'll be building an image generator with flet using replicate a platform with the already modeled model for images and even chat.
ok,
C'ya

Collapse
 
arseytech profile image
Arsey Kun

will update u on that, let me test out and see, and thanks another Gen AI with python is coming

Collapse
 
king_triton profile image
King Triton

Wow, what an informative and well-explained tutorial! As someone who's dabbled in Python but always thought it wasn't suitable for app development, discovering Flet feels like a game-changer. Your step-by-step guide makes it so easy to follow along. I particularly loved how you broke down each part of the code, making it accessible even for beginners. I managed to get my calculator up and running, and the tips on improving the UI were spot on. Can't wait to see what other tutorials you come up with. Maybe something on integrating APIs in Flet next? Thanks for sharing this!

Collapse
 
arseytech profile image
Arsey Kun

Thanks, I'm glad that it helped. what would you want me to make?
your suggestion will be appreciated.

Collapse
 
king_triton profile image
King Triton

Nothing comes to mind right away, maybe a game, snake for example

Thread Thread
 
arseytech profile image
Arsey Kun

Ok

Collapse
 
syxaxis profile image
George Johnson • Edited

Came across this article by accident, amazing. I've been having so much fun with this library and wanted to drop a "thank you" for the great article and bringing to people's attention.

Me and my work mate talked about this, he a Python coder and I'm Go coder who;s learning Python, we were looking for a way to build some quick and easy interfaces for the work projects and the flexibility and ease of use looks absolutley perfect.

Thanks again!

Collapse
 
arseytech profile image
Arsey Kun

Glad u liked it, thanks

Collapse
 
roshan_khan_28 profile image
roshan khan

that was a great read on for the flet library

Collapse
 
arseytech profile image
Arsey Kun

thanks

Collapse
 
tatanka profile image
Tatanka.nl

Awesome post!