Question
Hi,
Can you help me with Python using Tkinter? Please read all requirements and could you pls do it as simple as possible!
Aa- AaBbC AaBbCel AalBbCel AaßbCcD AaBbC AaBbCel AaBbCcl AaBbCcl Pind - Replace b Select IU-b x, x A A- Heading 1 1 Heading 3
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1 from tkinter import * 2 def total): #total function #gets the number in entry tax entry2.get) entry3.insert(INSERT, int(pri

from tkinter import *

def total(): #total function
   pri = entry1.get() #gets the number in entry
   tax = entry2.get()
   entry3.insert(INSERT, int(pri)+int(tax)) #inserts the total in the entry block

root = Tk()

name = Label(root, text="Jenny Kaur") #name label
name.pack()

f1 = Frame(root) #frame to place grid
f1.pack(side='top') #frame is fixed at top of the window
price = Label(f1, text="price:") #labels
tax = Label(f1, text="tax:")
entry1 = Entry(f1, bg="pink") #entry blocks with background color
entry2 = Entry(f1, bg="pink")

price.grid(row=0, padx=10, pady=20) #grid arrangement and padding
tax.grid(row=1, column=0)
entry1.grid(row=0, column=1)
entry2.grid(row=1, column=1)

canvas=Canvas(root) #canvas to draw line
canvas.pack()
line=canvas.create_line(10,40,230,40, fill="green") #drawing line with coordinates

button=Button(root, text="RUN", bg="green", command=total) #button with command total
button.place(x=230, y=130)

f2 = Frame(root) #frame 2
f2.place(x=10, y=200) #placing frame at position
total_cost = Label(f2, text="total cost:")
total_cost.grid(row=0, column=0)
entry3 = Entry(f2, bg="yellow")
entry3.grid(row=0, column=1)

root.geometry("300x250") #measurments of window
root.mainloop()

tk X Jenny Kaur price: 10 tax: 40 RUN total cost: 50

Add a comment
Know the answer?
Add Answer to:
Hi, Can you help me with Python using Tkinter? Please read all requirements and could you...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hi, can you help me add these requirements in my Turtle python program. The program is...

    Hi, can you help me add these requirements in my Turtle python program. The program is supposed to run an Olympics skating game. The program is below the requirements. Thanks Requirements -Your race will be random generated so each time there is a possibility that a different winner. -Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off. -Have the program tell the winner[s]. -Award Medals. -User may guess who will win. -Allow...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • Answer all of these, please Using Aplia graphs me questions will ask you to interpret a given oraph, and others will require you to manipulate the objects on the graph or even add new required...

    Answer all of these, please Using Aplia graphs me questions will ask you to interpret a given oraph, and others will require you to manipulate the objects on the graph or even add new required objects,. Each manipulable oblect will be shown in the area to the right of the praph (the palette) and referred to by ts color, object type, and shape of the control points, for example, black point (plus symbol). To place an object on the graph,...

  • The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have...

    The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have been placed above a conveyer belt to enables parts on the belt to be photographed and analyzed. You are to augment the system that has been put in place by writing C code to detect the number of parts on the belt, and the positions of each object. The process by which you will do this is called Connected Component Labeling (CCL). These positions...

  • please help!!!! JAVA I done the project expect one part but I still give you all...

    please help!!!! JAVA I done the project expect one part but I still give you all the detail that you needed... and I will post my code please help me fix the CreateGrid() part in main and make GUI works    List Type Data Structures Overview : You will be implementing my version of a linked list. This is a linked list which has possible sublists descending from each node. These sublists are used to group together all nodes which...

  • Can you please help me with creating this Java Code using the following pseudocode? Make Change C...

    Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.)                                                                                                                                  2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT