Skip to content

Camera Controls and Screenshots #543

Discussion options

You must be logged in to vote

Actually with trame 3.6+ you should be able to just do

@trigger("download_screenshot") # @ctrl.trigger
def download_screenshot(self):
        SERVER_PATH = Path("D:\\DATA\\screenshot.png")
        simple.SaveScreenshot(str(SERVER_PATH))
        return SERVER_PATH.read_bytes()

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@jourdain
Comment options

@jourdain
Comment options

@staceywhitmore-inl
Comment options

@jourdain
Comment options

Answer selected by staceywhitmore-inl
@staceywhitmore-inl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants