Member Avatar for sravan953
sravan953

Hey guys!

I run Windows XP(just though I'd let you guys in about it!)

I have written code for a Facebook program:

import time
import bz2

print
print("Welcome to Facebook Secure Scratch pad. You can enter your Facebook password\nto encode and store.")
print
print("Please enter your Facebook password:")
ps=raw_input()

if ps=="":
    print("Please enter the correct Facebook password to store!")
else:
    log=open('log.dat','w')

    compressedps=bz2.compress(ps)

    logw=log.write(compressedps)

print ("Please wait...encoding")
time.sleep(2)
print
print("Your Facebook password has been encoded and stored successfully!")
print
raw_input("Press <enter>")

Since I do not know Tkinter in the least, I am requesting one of you guys to write some Tkinter code so that on opening the prog, a window with a 'username' box and a 'password' box appears, below which is a 'Encode' button(which compresses the entered password). Also, the text in the password field should be masked(dunno how to do that!), and a 'Facebook' logo should be on the top...

Would be great if one of you guys help an amateur programmer...

Thanks a million guys!