Self.curX, self.curY = (event.x, event.y) Self.rect = _rectangle(self.x, self.y, 1, 1, outline='red', width=3, fill="blue") Self.takeBoundedScreenShot(self.curX, self.curY, self.start_x - self.curX, self.start_y - self.curY) Self.takeBoundedScreenShot(self.start_x, self.curY, self.curX - self.start_x, self.start_y - self.curY)Įlif self.start_x >= self.curX and self.start_y >= self.curY: If self.start_x = self.curX and self.start_y = self.curY: Self.master_screen.attributes("-topmost", True) Self.master_screen.attributes('-fullscreen', True) Self.screenCanvas = Canvas(self.picture_frame, cursor="cross", bg="grey11") Im = pyautogui.screenshot(region=(x1, y1, x2, y2)) Self.picture_frame.pack(fill=BOTH, expand=YES)ĭef takeBoundedScreenShot(self, x1, y1, x2, y2): Self.picture_frame = Frame(self.master_screen, background = "blue") #self.master_screen.attributes("-transparent", "blue") Self.snipButton = Button(self.buttonBar, width=3, command=self.createScreenCanvas, background="green") # root.attributes("-transparentcolor","red") But this seg fault is different mainly that I rolled back to a version without the fault. Now this is not the first seg fault I have seen, I have been programming for a few years. Zsh: segmentation fault python3 timed_shot.py Proceeding anyway because the app is old. Set a breakpoint on objc_autoreleasePoolInvalid to debug.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |