Skip to content

Instantly share code, notes, and snippets.

View nicanor-romerovenier's full-sized avatar

Nicanor Romero Venier nicanor-romerovenier

View GitHub Profile
@nicanor-romerovenier
nicanor-romerovenier / tutorial_2.py
Last active August 20, 2016 12:06
Programar Fácil - Tutorial de Python # 2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nicanor Romero Venier"
__copyright__ = "Copyright 2016, Programar Fácil"
import tkinter
@nicanor-romerovenier
nicanor-romerovenier / tutorial_3.py
Last active August 20, 2016 12:06
Programar Fácil - Tutorial de Python # 3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nicanor Romero Venier"
__copyright__ = "Copyright 2016, Programar Fácil"
import tkinter
mi_ventana_sin_valor = tkinter.Tk()
@nicanor-romerovenier
nicanor-romerovenier / tutorial_4.py
Created August 20, 2016 16:46
Programar Fácil - Tutorial de Python # 4
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nicanor Romero Venier"
__copyright__ = "Copyright 2016, Programar Fácil"
import tkinter
@nicanor-romerovenier
nicanor-romerovenier / tutorial_4_ejercicio_1.py
Created August 20, 2016 16:48
Programar Fácil - Tutorial de Python # 4 - Ejercicio 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nicanor Romero Venier"
__copyright__ = "Copyright 2016, Programar Fácil"
import tkinter
@nicanor-romerovenier
nicanor-romerovenier / tutorial_5.py
Last active April 26, 2018 22:04
Programar Fácil - Tutorial de Python # 5
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
def accion_de_mi_boton():
print("Mi boton ha sido presionado!")
mi_ventana = tkinter.Tk()
mi_ventana.geometry("640x480")
@nicanor-romerovenier
nicanor-romerovenier / tutorial_5_ejercicio_1.py
Last active September 19, 2016 21:26
Programar Fácil - Tutorial de Python # 5 - Ejercicio 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
def accion_de_mi_boton():
print("Mi boton ha sido presionado!")
mi_ventana = tkinter.Tk()
mi_ventana.geometry("640x480")
@nicanor-romerovenier
nicanor-romerovenier / tutorial_5_ejercicio_2.py
Last active September 19, 2016 21:25
Programar Fácil - Tutorial de Python # 5 - Ejercicio 2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
def accion_de_mi_boton():
print("Mi boton ha sido presionado!")
def accion_de_mi_boton_3():
print("Mi boton 3 ha sido presionado!")
@nicanor-romerovenier
nicanor-romerovenier / tutorial_6.py
Last active September 19, 2016 21:24
Programar Fácil - Tutorial de Python # 6
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
from tkinter import messagebox
def accion_de_mi_boton():
messagebox.showinfo("Mi diálogo emergente", "Mi botón ha sido presionado!")
mi_ventana = tkinter.Tk()
@nicanor-romerovenier
nicanor-romerovenier / tutorial_6_ejercicio_1.py
Last active September 19, 2016 21:25
Programar Fácil - Tutorial de Python # 6 - Ejercicio 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
from tkinter import messagebox
def accion_de_mi_boton():
messagebox.showinfo("Mi diálogo emergente", "Mi botón ha sido presionado!")
def accion_de_mi_boton_2():
@nicanor-romerovenier
nicanor-romerovenier / tutorial_7.py
Last active September 19, 2016 21:25
Programar Fácil - Tutorial de Python # 7
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
from tkinter import messagebox
def accion_de_mi_boton():
respuesta = messagebox.askquestion("Mi diálogo emergente", "¿Te gusta mi programa?")
print("La respuesta es:", respuesta)