Exemple #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)
 def finish_capture():
     self.img = screen.capture_rect(self.rect)
     self.mcanvas.freeze()
Exemple #3
0
def clipboard_rect(rect: ui.Rect):
    flash_rect(rect)
    img = screen.capture_rect(rect)
    clip.set_image(img)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)