コード例 #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
ファイル: screenshot.py プロジェクト: eprev/talon
def clipboard_rect(rect: ui.Rect):
    flash_rect(rect)
    img = screen.capture_rect(rect)
    clip.set_image(img)
コード例 #4
0
ファイル: screenshot.py プロジェクト: eprev/talon
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
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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
ファイル: screenshot.py プロジェクト: nosami/knausj_talon
 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)