title: How to make a Python script run without it opening the console window?
body: <p>I want to double click on my Python script (which uses a Tkinter GUI) and I just want it to open the Tkinter window, not the console window. </p>
  
  <p>To do this, I changed the extension from .py to .pyw and this seems to work fine on Windows but when I double click my .pyw file on a Linux machine, it doesn't work. It simply froze and I had to restart my system.</p>
  
  <p>Please suggest a platform-independent solution that would help me to run the Python script without opening the terminal/command prompt.</p>