I'm adept or just plain shit at this lol this is the error message
how do I fix this.. or make this code better to work like a fake paypal? lol
Code
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
return self.func(*args)
TypeError: transfer() takes exactly 3 arguments (1 given)how do I fix this.. or make this code better to work like a fake paypal? lol
Code
from Tkinter import *
#window create
class Person(Frame):
def __init__(self,name):
Frame.__init__(self,name)
self.grid()
self.button_clicks =0 #wtf clicks
self.create_widgets()
self.name = name
self.money = 0
def create_widgets(self):
self.button1 = Button(self)
self.button1["text"] = "amount of fucks givin: 0"
self.button1["command"] = self.transfer
self.button1.grid()
self.button1.configure(text = "Send Money")
def transfer(sender,reciever,amount):
if sender.money >=amount:
sender.money -= amount
else:
raise Exception
reciever.money += amount
root = Tk()
root.title("Fake Paypal")
root.geometry("900x500")
app = Person(root)
app.grid()
class Iced_Coffee:
def __init__(Taylor,name):
Taylor.name = name
Taylor.money = 0
Taylor = Iced_Coffee("Taylor")
#kickoff loop mofo
root.mainloop()
