[FLUG] PyAsciiCalc 1.0 released!

  • From: Bolognini <rlbolo@xxxxxxxxx>
  • To: fanolug <fanolug@xxxxxxxxxxxxx>
  • Date: Thu, 23 May 2002 23:58:33 +0200

Ma dove vai se il PyAsciiCalc non ce l'hai!

Requires: boh non lo so io ho fatto l'install completa!

Lo

#PyAsciiCalc... another piece of shitty software by ^Devil^!!
#Programma altamente didattico... consigliato da CEPU!

from time import *
from Tkinter import * #Se non avete Tkinter installato commentate questa riga
from sys import *

g = time()

print """\n-----------------------
PyAsciiCalc ver. 1.0
-----------------------
"""

def esci():
        sys.exit() #mica ho capito perché non funziona!!

d = 0
lista = []

a = raw_input ("Stringa: ")
print " "

for i in range(0, len(a)):
        b = ord(a[i])
        print "%s = %s " % (a[i], b)
        lista.append(b)

for x in range(0, len(lista)):
        d = d + lista[x]
print "==========="
print "Somma = %s \n" % d

f = time()
e = f - g

print "You have wasted %s sec. using this shitty soft!\n" % (e)

root = Tk() #Se non avete Tkinter installato commentate questa riga
bottoncino = Button(text="Goodbye!", command="esci()") #Se non avete Tkinter 
installato commentate questa riga
bottoncino.pack() #Se non avete Tkinter installato commentate questa riga
root.mainloop() #Se non avete Tkinter installato commentate questa riga

Other related posts:

  • » [FLUG] PyAsciiCalc 1.0 released!