Code:
from Tkinter import *
import random
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.label = LabelFrame(frame, text='Battler III')
self.label.pack()
self.arena = Button(frame, text='Arena Mode', relief=RAISED, command=self.arena)
self.arena.grid(row=4)
self.arena.pack()
self.adven = Button(frame,text='Adventure Mode', relief=RAISED, command=self.adventure)
self.adven.grid(row=6)
self.adven.pack()
def arena(self, secondary):
top = Toplevel()
sframe = Frame(secondary)
sframe.pack()
self.label = LabelFrame(sframe, text='Battler III')
self.label.pack()
print('goodbye world')
def adventure(self):
print('hello world')
root = Tk()
app = App(None)
root.mainloop()
What i am trying to do, is create a Tkinter application frame and apply a frame to it called frame (called sframe) and i get this error when i run it (on Python 2.6.4)
line 1410 in __call__
return self.(*args)
TypeError: arena takes exactly two arguments (1 given)
can you help me out?
Comment