Skip to main content

Simple Python tkinter(ttkbootstrap) serialport communication with Arduino

In this tutorial ,We will learn to build a simple crossplatform GUI based serial port communication with Arduino using Python and tkinter (ttkbootstrap).To make the interface look nice we will use the theme extension for tkinter called ttkbootstrap which provides modern flat style themes.

Here we will use pySerial Library to communicate with the serial port and use the tkinter(ttkbootstrap) library to build a cross platform GUI for ease of use.

Running Periodic background tasks in tkinter (ttkbootstrap) using .after() method

When you are building a GUI with tkinter/ttkbootstrap ,you may want to check the status of certain variable or functions continuously at regular interval and update those variables on the tkinter GUI.

Here, we are using ttkbootstrap theme extension along with tkinter and Python.