Sure! Below is a simple Python code using the Tkinter library to create the GUI as per your requirements. The first window (named "Ubuntu") contains a red square button that, when clicked, turns blue and opens a second window (named "Kali") with a green background.
Make sure you have Python installed on your system along with Tkinter (which is included in standard distributions). You can run this code in a Python environment.
Here is the


