Open theodorechle opened 11 months ago
That would be possible, but why would you want to do that ?
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.
You can't use the clipboard without leaving the program anyway
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.
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.
My fork of upsilon provides basic python bindings for escher's clipboard functions. It may assist you while a solution is implemented in Upsilon.
Thanks, I will see it later, I can't for now.
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 ?