Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python functions for clipboard #345

Open
theodorechle opened this issue Oct 8, 2023 · 7 comments
Open

Add python functions for clipboard #345

theodorechle opened this issue Oct 8, 2023 · 7 comments

Comments

@theodorechle
Copy link

Is your feature request related to a problem? Please describe.
I'd like to be able to use the clipboard in a python program.

Describe the solution you'd like
Can you add python functions to read and write the clipboard ?

@Yaya-Cout
Copy link
Member

That would be possible, but why would you want to do that ?

@theodorechle
Copy link
Author

If you have a program who is running some graphic things, it can be easier to copy a value directly in the clipboard than to print it and to find it in the console, especially if you are printing other things who can erase it. I think it will also be better for users to directly copy and paste. In addition, in a text program, you can't go to last values to copy them without stopping the program, who can be really annoying.

@Yaya-Cout
Copy link
Member

You can't use the clipboard without leaving the program anyway

@theodorechle
Copy link
Author

In a graphic program, I would prefer to paste a value than to have to write it manually or to have to stop the graphic part to do an input. Or to write it directly in the program.

@theodorechle
Copy link
Author

Maybe it can be good to add a parameter for each program like for executing in console but for allowing to use clipboard, to prevent deletion of anything who can be copied. Also, if you do that, you may add a constant to know if it's locked or not.

@0x4c756e61
Copy link

My fork of upsilon provides basic python bindings for escher's clipboard functions. It may assist you while a solution is implemented in Upsilon.

@theodorechle
Copy link
Author

Thanks, I will see it later, I can't for now.

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

No branches or pull requests

3 participants