“Cómo hacer una ventana en Tkinter” Código de respuesta

Cómo hacer una ventana tkinter

from tkinter import *

mywindow = Tk() #Change the name for every window you make
mywindow.title("New Project") #This will be the window title
mywindow.geometry("780x640") #This will be the window size (str)
mywindow.minsize(540, 420) #This will be set a limit for the window's minimum size (int)
mywindow.configure(bg="blue") #This will be the background color

mywindow.mainloop() #You must add this at the end to show the window
KKNich

Cómo crear una ventana tkinter

#Creating Tkinter Window In Python:

from tkinter import *

new_window = Tk() #Create a window ; spaces should be denoted with underscores ; every window should have a different name
new_window.title("My Python Project") #Name of screen ; name should be the one which you already declared (new_window)
new_window.geometry("200x150") #Resizes the default window size
new_window.configure(bg = "red") #Gives color to the background

new_window.mainloop() #Shows the window on the screen
CodePro#1

Cómo crear ventana en tkinter

import tkinter as tk

window = tk.Tk() #Creates a window
window.title("Trial") # Sets a title for the window
window.geometry(520,850)# Size of window optional
window.minisize(520,850) # Minimum size of window

window.mainloop()# Sets visiblility to true
VScoder

GUI BÁSICA TKINTER

import tkinter as tk
root = tk.Tk()
root.title("my title")
root.geometry('200x150')
root.configure(background='black')

#	enter widgets here

root.mainloop()
Difficult Dove

Haz una ventana tkinter

#!/usr/bin/python

import Tkinter
top = Tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()
Crowded Cottonmouth

Cómo hacer una ventana en Tkinter

from tkinter import *

root= Tk()#Change the name for every window you make
root.title("You have copied from patha codes")#This will be the window title
root.geometry("666x777")#This will be the window size (str)
root.minsize(540,540)#This will be set a limit for the window's minimum size (int)
root.configure(bg="blue")#This will be the background color


root.mainloop()
Partha Codes

Respuestas similares a “Cómo hacer una ventana en Tkinter”

Preguntas similares a “Cómo hacer una ventana en Tkinter”

Más respuestas relacionadas con “Cómo hacer una ventana en Tkinter” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código