def screenshot(): """takes a screenshot of the entire screen and saves it to the desktop as screenshot.png""" img = screen.capture_rect(screen.main_screen().rect) path = get_screenshot_path() img.write_file(path) app.notify(subtitle="Screenshot: %s" % path)
def finish_capture(): self.img = screen.capture_rect(self.rect) self.mcanvas.freeze()
def clipboard_rect(rect: ui.Rect): flash_rect(rect) img = screen.capture_rect(rect) clip.set_image(img)
def screenshot_rect(rect: ui.Rect, title: str = ""): flash_rect(rect) img = screen.capture_rect(rect) path = get_screenshot_path(title) img.write_file(path)
def screenshot_window_clipboard(): '''takes a screenshot of the window and saves it to the clipboard''' img = screen.capture_rect(ui.active_window().rect) clip.set_image(img)
def screenshot_clipboard(): '''takes a screenshot of the entire screen and saves it to the clipboard''' img = screen.capture_rect(screen.main_screen().rect) clip.set_image(img)
def screenshot_window(): '''takes a screenshot of the current window and says it to the desktop as screenshot.png''' img = screen.capture_rect(ui.active_window().rect) path = os.path.expanduser( os.path.join('~', 'Desktop', 'screenshot.png')) img.write_file(path)
def screenshot(): '''takes a screenshot of the entire screen and saves it to the desktop as screenshot.png''' img = screen.capture_rect(screen.main_screen().rect) path = os.path.expanduser( os.path.join('~', 'Desktop', 'screenshot.png')) img.write_file(path)
def screenshot_window(): """takes a screenshot of the current window and says it to the desktop as screenshot.png""" img = screen.capture_rect(ui.active_window().rect) path = get_screenshot_path() img.write_file(path) app.notify(subtitle="Screenshot: %s" % path)
def screenshot_window(): """takes a screenshot of the current window and says it to the desktop as screenshot.png""" img = screen.capture_rect(ui.active_window().rect) path = os.path.expanduser( os.path.join("~", "Desktop", "screenshot.png")) img.write_file(path)
def screenshot(): """takes a screenshot of the entire screen and saves it to the desktop as screenshot.png""" img = screen.capture_rect(screen.main_screen().rect) path = os.path.expanduser( os.path.join("~", "Desktop", "screenshot.png")) img.write_file(path)