This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import Tkinter as tk | |
import tkMessageBox | |
global cad, TH, CH, PR, CR, PP, CP, PB, CB, totf, iva, totalP, FP | |
from pymongo import MongoClient | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import Tkinter as tk | |
import tkMessageBox | |
global cad, TH, CH, PR, CR, PP, CP, PB, CB, totf, iva, totalP, FP | |
from pymongo import MongoClient | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import Tkinter as tk | |
import tkMessageBox | |
global cad | |
def thamb(): | |
hamb = var1.get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import Tkinter as tk | |
import tkMessageBox | |
global cad | |
def thamb(): | |
hamb = var1.get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import tkMessageBox | |
global bandera,bandera1,bandera2,bandera3,bandera4 | |
class app(): | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
import Tkinter as tk | |
raiz = Tk() | |
raiz.title("ventana primaria") | |
raiz.resizable(1, 1) # para permitir agrandar o no el ancho o la altura con el moyuse | |
# raiz.geometry("500x600") | |
raiz.config(bg="orange") | |
raiz.config(bd=15) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
raiz = Tk() | |
raiz.title("ventana primaria") | |
raiz.resizable(1, 1) # para permitir agrandar o no el ancho o la altura con el moyuse | |
# raiz.geometry("500x600") | |
raiz.config(bg="cyan") | |
raiz.config(bd=15) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _cuotas(prestamo, meses): | |
cuotas= prestamo/meses | |
return cuotas | |
def _Prestamo(ingresos,egresos): | |
prestamo=input("Monto del prestamo: ") | |
meses=input("Cuantos meses de pago: ") | |
print "Monto de pago por mes: ",_cuotas(prestamo,meses) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iniciar(monto): | |
dulce=raw_input("Elija la letra") | |
if dulce =="a": | |
precioProducto=2.5 | |
print "Su cambio es: ", calcularcambio(precioProducto,monto) | |
elif dulce == "b": | |
precioProducto = 1.4 | |
print "Su cambio es: ", calcularcambio(precioProducto,monto) | |
elif dulce == "c": | |
precioProducto = 1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def notas(nota): | |
if nota>=0 and nota <=3: | |
return "Insuficiente" | |
elif nota >= 4 and nota <= 6: | |
return "Suficiente" | |
elif nota >=7 and nota <= 10: | |
return "Bien" | |
nota=input("Ingrese la nota: ") | |
print notas(nota) |
NewerOlder