Created
September 21, 2018 07:05
-
-
Save aula9/2a0f60bffde758371f3958ac0a20eff3 to your computer and use it in GitHub Desktop.
This file contains 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
from tkinter import * | |
def show_entry_fields(): | |
print("Happy Translation Week!") | |
print( "I'm"+ e1.get()+ e2.get() +" and I translate coding projects into Arabic for Raspberry Pi Foundation" + "Thank You") | |
Label(master, text="Hello :) I'm "+ e1.get() + e2.get() +" and I translate coding projects into Arabic for Raspberry Pi Foundation " + "\n I like to work as a volunteer with Raspberry pi\n "+ " Best regards" , font = 18).grid(row=7, column=1) | |
#Label(master, text=" السلام عليكم أنا "+ e1.get() + e2.get() +" ولقد قمت بترجمة مشاريع برمجة إلى اللغة العربية ضمن مشروع راسبيري باي التطوعي للترجمة , ولقد كانت تجربة جميلة وممتعة " , font = 18).grid(row=9, column=1) | |
e1.delete(0,END) | |
e2.delete(0,END) | |
master = Tk() | |
logo = PhotoImage(file="n.gif") | |
Label(master, image=logo).grid(row=100, column=8) | |
Label(master, text="First Name").grid(row=0) | |
Label(master, text="Last Name").grid(row=1) | |
e1 = Entry(master) | |
e2 = Entry(master) | |
e1.insert(10," ") | |
e2.insert(10," ") | |
e1.grid(row=0, column=1) | |
e2.grid(row=1, column=1) | |
Button(master, text='Quit', command=master.quit).grid(row=3, column=0, sticky=W, pady=4) | |
Button(master, text='Show', command=show_entry_fields).grid(row=3, column=1, sticky=W, pady=4) | |
Label(master, text="Happy Translation Week!" , font = "Verdana 16 bold" ,fg = "light green", bg = "dark green" ).grid(row=6, column=1) | |
mainloop( ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment