Answers for """"""" python"

1

python

Learn python now !
Posted by: Guest on November-12-2020
0

python

py -m pip install -e git+https://git.repo/some_pkg.git#egg=SomeProject          # from git
py -m pip install -e hg+https://hg.repo/some_pkg#egg=SomeProject                # from mercurial
py -m pip install -e svn+svn://svn.repo/some_pkg/trunk/#egg=SomeProject         # from svn
py -m pip install -e git+https://git.repo/some_pkg.git@feature#egg=SomeProject  # from a branch
Posted by: Guest on July-04-2021
4

python

Programing language
by: Guido van Rossum
Posted by: Guest on January-03-2021
-1

python

from tkinter import * 

def save_info():
    firstname_info = firstname.get()
    lastname_info = lastname.get()
    age_info = age.get()
    
    print(firstname_info,lastname_info,age_info)
    
    file = open("user.txt","w")
    
    file.write("Your First Name " + firstname_info)
    
    file.write("\n")
    
    file.write("Your Last Name " + lastname_info)
    
    file.write("\n")
    
    file.write("Your Age " + str(age_info))
    
    file.close()
    
    

app = Tk()

app.geometry("500x500")

app.title("Python File Handling in Forms")

heading = Label(text="Python File Handling in Forms",fg="black",bg="yellow",width="500",height="3",font="10")

heading.pack()

firstname_text = Label(text="FirstName :")
lastname_text = Label(text="LastName :")
age_text = Label(text="Age :")

firstname_text.place(x=15,y=70)
lastname_text.place(x=15,y=140)
age_text.place(x=15,y=210)

firstname = StringVar()
lastname = StringVar()
age = IntVar()

first_name_entry = Entry(textvariable=firstname,width="30")
last_name_entry = Entry(textvariable=lastname,width="30")
age_entry = Entry(textvariable=age,width="30")

first_name_entry.place(x=15,y=100)
last_name_entry.place(x=15,y=180)
age_entry.place(x=15,y=240)

button = Button(app,text="Submit Data",command=save_info,width="30",height="2",bg="grey")

button.place(x=15,y=290)


mainloop()
Posted by: Guest on April-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language