I want to run a command when clicking on a GTK notebook tab. Like the motherboard tab in the image below.

My goal here is to run some terminal commands to get motherboard info. But I don't want to run them as soon as i open the application. It would make the app slow. Inside the tab i have a box layout. and inside it i have two labels.
I did try I am using GTK+ from python3.8, And designing the UI file using glade.
