UNIDAD 4-PROGRAMAS HECHOS DESDE CERO

Imagen
#PROGRAMA QUE PIDE EL NOMBRE DE UNA PERSONA Y LA SALUDA. from Tkinter import * from tkMessageBox import * ventana=Tk() ventana.geometry("300x300") ventana.title('Hola.........') nombre= StringVar() nombre.set('') dato=Entry(ventana,textvariable=str(nombre)).place(x=100,y=100) button=Button(ventana,text='hola',command=lambda:showinfo(title='hola', message='hola '+ nombre.get())).place(x=100,y=150) ventana.mainloop() ejecucion del programa: #Programa que abre el explorador de archivos y copia la ruta y la muestra en un Entry. from Tkinter import * from PIL import * from tkFileDialog import askopenfilename ventana=Tk() ventana.geometry('450x300') def llamada(): hey = StringVar() nombre = askopenfilename() print nombre hey.set(nombre) label = Entry(ventana, textvariable=hey,width=50).place(x=100, y=100) nombre=Label(ventana,text='pulse el boton y elija una ruta').place(x=10,y=10) label=...

practicas del dia 27-09-18


#1 ELaboracion de un programa que haga una suma regresiva de números impares
Introduciendo un numero de inicio=donde empezara la regresión hasta llegar a uno.



#2 ELaboracion de un programa que haga una suma regresiva de números impares

Introduciendo un numero de inicio=donde empezara la regresión hasta llegar a uno utilizando variables para introducir el inicio y el final de la suma.

#3 ELABORACION DE UN PROGRAMA QUE HACE UNA SUMA EN REVERSA DEL 50 HASTA DEL 0


#4 ELABORACION DE UN PROGRAMA QUE HACE UNA SUMA EN REVERSA DE 2 EN 2 INTRODUCIENDO EL INICIO Y EL FINAL DE LA SUMA:





Comentarios

Entradas más populares de este blog

UNIDAD 4-PROGRAMAS HECHOS DESDE CERO

1.2 Dispositivos de hardware y software para el despliegue gráfico.

Herramientas cad y case