[GH-ISSUE #345] Add python functions for clipboard #159

Open
opened 2026-05-06 13:15:52 +02:00 by BreizhHardware · 7 comments

Originally created by @theodorechle on GitHub (Oct 8, 2023).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/345

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 ?

Originally created by @theodorechle on GitHub (Oct 8, 2023). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/345 **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 ?
Author
Owner

@Yaya-Cout commented on GitHub (Oct 8, 2023):

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

<!-- gh-comment-id:1752049687 --> @Yaya-Cout commented on GitHub (Oct 8, 2023): That would be possible, but why would you want to do that ?
Author
Owner

@theodorechle commented on GitHub (Oct 8, 2023):

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.

<!-- gh-comment-id:1752094306 --> @theodorechle commented on GitHub (Oct 8, 2023): 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.
Author
Owner

@Yaya-Cout commented on GitHub (Oct 8, 2023):

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

<!-- gh-comment-id:1752094621 --> @Yaya-Cout commented on GitHub (Oct 8, 2023): You can't use the clipboard without leaving the program anyway
Author
Owner

@theodorechle commented on GitHub (Oct 8, 2023):

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.

<!-- gh-comment-id:1752095723 --> @theodorechle commented on GitHub (Oct 8, 2023): 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.
Author
Owner

@theodorechle commented on GitHub (Oct 8, 2023):

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.

<!-- gh-comment-id:1752104690 --> @theodorechle commented on GitHub (Oct 8, 2023): 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.
Author
Owner

@0x4c756e61 commented on GitHub (Jan 6, 2024):

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

<!-- gh-comment-id:1879791208 --> @0x4c756e61 commented on GitHub (Jan 6, 2024): [My fork](https://github.com/0x454d505459/Upsilon-python-extended) of upsilon provides basic python bindings for escher's clipboard functions. It may assist you while a solution is implemented in Upsilon.
Author
Owner

@theodorechle commented on GitHub (Jan 6, 2024):

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

<!-- gh-comment-id:1879794839 --> @theodorechle commented on GitHub (Jan 6, 2024): Thanks, I will see it later, I can't for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#159
No description provided.