Python Forum
Use radiobuttons to determine a total charge
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use radiobuttons to determine a total charge
#3
Thank you for the help. I was able to fix my problem

    def convert(self):
        message = 'Your total charges = $'
        ticket = self.ticket_entry.get()
        total = 0.00

        total = float(self.radio_var1.get()) * float(self.ticket_entry.get())
        tkinter.messagebox.showinfo('Total Charges', message + str(f'{total:.2f}'))
Reply


Messages In This Thread
RE: Use radiobuttons to determine a total charge - by SalsaBeanDip - Nov-13-2020, 04:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Default Values for radiobuttons xuraax 2 3,724 May-17-2020, 06:43 PM
Last Post: xuraax
  [Tkinter] Connect Toplevel Radiobuttons to root Label/Entry widgets iconit 2 2,402 Apr-28-2020, 06:50 AM
Last Post: iconit
  2 sets of radiobuttons Chuck_Norwich 4 2,745 Dec-02-2019, 07:31 PM
Last Post: Denni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020