Answers for "create a window python"

2

how to make a window in python

import tkinter
from tkinter import *

#this makes the window
window = Tk()
#title
window.title("My Window")
#change the size to whatever you want too
window.configure(width = 800, height = 800)
#change the background color to whatever you want too
window.configure(bg = 'black')
#this runs the window
window.mainloop()

#simple way to a window in python
Posted by: Guest on August-05-2021
1

how to create tkinter window

import tkinter
master = tkinter.Tk()
master.mainloop()
Posted by: Guest on May-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language