Пример #1
0
    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)
Пример #2
0
 def finish_capture():
     self.img = screen.capture_rect(self.rect)
     self.mcanvas.freeze()
Пример #3
0
def clipboard_rect(rect: ui.Rect):
    flash_rect(rect)
    img = screen.capture_rect(rect)
    clip.set_image(img)
Пример #4
0
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)
Пример #5
0
 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)
Пример #6
0
 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)
Пример #7
0
 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)
Пример #8
0
 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)
Пример #9
0
 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)
Пример #10
0
 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)
Пример #11
0
 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)