def initilize(self): self.drawingWindow = Rect(20, 20, 630, 600, Color.BLACK, 1, transparent=False) self.Add(self.drawingWindow) buttonPlay = Button(380, 640, 60, 60, keycode=FA.PLAY, padding=5) buttonPlay.bind(self.OnClickPlay) buttonPlay.SetAccentColor(Color.HATTER_1) self.Add(buttonPlay) buttonStepOver = Button(450, 640, 60, 60, keycode=FA.STEPOVER, padding=10) buttonStepOver.bind(self.OnClickStepOver) buttonStepOver.SetAccentColor(Color.HATTER_4) self.Add(buttonStepOver) buttonStop = Button(520, 640, 60, 60, keycode=FA.STOP, padding=4) buttonStop.bind(self.OnClickStop) buttonStop.SetAccentColor(Color.HATTER_7) self.Add(buttonStop) buttonReset = Button(590, 640, 60, 60, keycode=FA.RESET, padding=4) buttonReset.bind(self.OnClickReset) buttonReset.SetAccentColor(Color.HATTER_8) self.Add(buttonReset) buttonSettings = Button(65, 660, 40, 40, keycode=FA.SETTINGS, padding=-1) buttonSettings.bind(self.OnClickSettings) self.Add(buttonSettings) buttonLoad = Button(110, 660, 40, 40, keycode=FA.LOAD) buttonLoad.bind(self.OnClickLoad) self.AddToSettings(buttonLoad) buttonSave = Button(155, 660, 40, 40, keycode=FA.SAVE, padding=2) buttonSave.bind(self.OnClickSave) self.AddToSettings(buttonSave) buttonScreenshot = Button(200, 660, 40, 40, keycode=FA.CAMERA) buttonScreenshot.bind(self.OnClickScreenshot) self.AddToSettings(buttonScreenshot) buttonBackground = Button(20, 660, 40, 40, keycode=FA.BACKGROUND_PICTURE, padding=-1) buttonBackground.bind(self.OnClickBackground) self.Add(buttonBackground) self.DataManagmentWindow = DataManagementScreen(100, 100, 900, 550, parent=self) self.scrollplane = ScrollingPlane(820, 20, 263, 600, 3, parent=self) self.Add(self.scrollplane) self.mouseDown = False self.timer = Timer() self.running = False self.reset = True self.compile_needed = True self.global_counter = 0 self.drawing_arrow = DrawingIcon(0, 0, 30, 30, color=Color.RED, width=0) self.show_run_pointer = False self.step_over_mode = False self.show_data_management_panel = False self.skip_wait = False self.data_index = None self.wait_next_draw = False self.disable_input = False self.button_down = {"a": False, "s": False, "d": False}