예제 #1
0
    def __init__(self):
        Tk.__init__(self)
        self.title('Python Gibbot Simulator')

        self.inputFrame = InputFrame(self, CONTROLLERS, TIME_SCALE,
                                     DEFAULT_BOT, self.restart)
        self.inputFrame.grid(row=0, column=0, sticky=N + W)

        self.gibbotFrame = GibbotFrame(self)
        self.gibbotFrame.grid(row=0, column=1, sticky=N + S + E + W)
        self.rowconfigure(0, weight=1)
        self.columnconfigure(1, weight=1)

        self.controller = nullController
        self.bot = DEFAULT_BOT
        self.timeScale = TIME_SCALE
        self.t = 0

        self.animate()