I Cant Get My Tkinter Checkbutton Variable Using .get() : So ive been working on a project and recently encountered an issue with my check button, As whenever I try to do  variablenname.get() it never works as it says int value has no attribute get(), I did use variablename = IntVar() too, what I am tring to do is to make if statements dependant on the value of the checkbutton


        def BusTramScreen():
            global timea
            global clock
            global Tickets
            global BusTicketPrice
            global price
            var = IntVar()
            BTR = Tk()
            BTR.attributes("-fullscreen", True)
            BTR.configure(bg = "#252538")
            d=datetime.datetime.utcnow()
            if d.hour < 9 and d.hour >7 or d.hour <19 and d.hour > 16:
                price = "Peak"
            else:
                price = "Off-Peak"
            clock = Label(BTR, font=("times", 20, "bold"), bg="#252538",fg= "white")
            clock.place(x= 850, y = 10)
            title = Label(BTR, text = "Purchase Bus or Tram Tickets", font=("times", 50), bg="#252538", fg= "white")
            title.place(x= 470, y = 50)
            pricerange = Label(BTR, text=(price), font = ("times", 35, "bold"), bg="#252538", fg= "white")
            pricerange.place(x=0, y= 10)
            Discounts = Checkbutton(BTR, text="Discount (Students, Under 18s, 65+ and Disability Badge Holders)", font = ("times", 30), bg="#252538", fg = "#99FFFF", variable = var)
            Discounts.place(x=120, y=300)
            Quan=Label(BTR, text = "QUANTITY", font = ("times", 22), bg="#252538", fg= "white")
            Quan.place(x=120, y=450)
            PriceTag=Label(BTR, text =("£", Cost), font = ("times", 50), fg = "White", bg = "#252538")
            PriceTag.place(x=1000, y= 450)
            val=Label(BTR, text = Tickets, font = ("times", 22), height = 5, width = 15, bg= "White")
            val.place(x=175, y=550)
            add=Button(BTR, text = "+", font = ("times", 22), height = 5, width = 10, bg = "#B266FF", command = lambda: UpdateAdd(val, BTR, PriceTag, BusTicketPrice, price, var))
            add.place(x=420, y=550)
            sub=Button(BTR, text = "-", font = ("times", 22), height = 5, width = 10, bg = "#B266FF", command = lambda: UpdateSub(val, BTR, PriceTag, BusTicketPrice, price, var))
            sub.place(x=6, y=550)
            tick()
            BTR.mainloop( )
            clock.after(200, tick)

    

        def UpdateAdd(val, BTR, PriceTag, BusTicketPrice, price, var):
          global Tickets
          global Cost
          var = var.get()
          print(price)
          print(var.get())
          Tickets = Tickets + 1 
          val.destroy()
          val = Label(BTR, text = Tickets, font = ("times", 22), height = 5, width = 15, bg= "White")
          val.place(x=175, y=550)
          PriceTag.destroy()
          if price == "Peak" and (not var.get()) :
              BusTicketPrice=BusTicketPrice*1.25
          elif (var.get()) and price == "Peak":
              BusTicketPrice=BusTicketPrice
          elif (var.get()) and price == "Off-Peak":
              BusTicketPrice=BusTicketPrice*0.75
          elif price == "Off-Peak" and (not var.get()):
              BusTicketPrice=BusTicketPrice
         Cost = BusTicketPrice * Tickets
         Cost = round(Cost, 3)
         PriceTag=Label(BTR, text =("£", str(Cost), "0"), font = ("times", 50), fg = "White", bg = "#252538")
         PriceTag.place(x=1000, y= 450)
