I have a simple code block that displays an image when the user press a button. When I save the script with `.py` extension, there is console at the background so I decided to save it as `.pyw` to hide it. Here is my code;

```
from tkinter import *
from PIL import Image

def open_image():
    im = Image.open("tobi.jpg")
    im.show()

root = Tk()
root.geometry("800x600+400+300")

buton = Button(root)
buton.config(text = "Show the image", command = open_image, activebackground = "yellow", bg = "lightgreen")
buton.pack()

mainloop()

```

I don't see `cmd` at the background since I save it as .pyw. However, when I click the button, just before opening the image I see console for a short time, then it dissappears. How can I avoid this, I want to hide console completely,