

Mla = Label( root, text = "WELCOME ", font =( "Algerian", 15)) #welcome txt using label widget showerror( " Empty Entry box", "Entrybox is Already Blank !! ") askquestion( "Clear All Stored Data.", "Do You Really Want To Clear All Data.?")Ībel = Label( win, text = """Spacebar = 100000.

showerror( "Empty data box", "Data box is Already Empty") set)īutton12 = Button( loot, text = " Exit ", bg = "powder blue", font =( 'Helvetica 12 bold italic'), command = exithis)īutton22 = Button( loot, text = "Clear history", bg = "powder blue", font =( 'Times 12 bold'), command = clearhis)

Label9 = Label( loot, text = " Conversion History ", bg = "cyan", font =( 'Time 15 bold'))ĭata2 = Text( loot, width = 50, height = 20, yscrollcommand = scroll2. read() #exoprting data from file to tkinter window Loot = Tk() # creating history window in tkinterįileh = open( "historydoc.txt", 'r+') #opening history askquestion( "Clear HISTORY.", "Do You Really Want To Clear All History.?") showinfo( "Clear HISTORY.", "There is nothing in History.") askquestion( "Exit", "Do You Really Want To Exit? ")Ībel2 = Label( po2, text = """ WELCOME To String to Binary Converterġ)Use entry field to insert data like alphabet,word and small sentences.Ģ)Use button given below to convert them into binary.ģ)Refresh your GUI using refresh option from menubar.Ĥ)Many more feature available in menubar.ĭESCLIMER: Try to use only strings Decimals may showīu1 = Button( po2, text = " OK ", font =( 'Helvetica 14 bold italic'), command = forwin2) write( zz + ' \n') # printing conversion history to "history" file insert( 0.0, txt + " = " + output + "." + ' \n') # printing value to databoxįileh. showerror( "Empty Entry Box", "Please Write Something in Entry Box !!")ĭata. join( format( ord( x), 'b') for x in txttext) # converting to binary #opening file "history" it will open history file if exists and if its didn'ty it will create oneįileh = open( "historydoc.txt", 'a+') #openining "history" file
