473,322 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

linux clipboard?

how can i copy text to the linux clipboard?

I've seen a number of posts explain how to do it with tk....
is this the only way?

(i'm not using tk as my gui tool kit.)

many thanks!

Mar 7 '06 #1
7 3999
da*************@gmail.com:
how can i copy text to the linux clipboard?


Linux is an operating system. It doesn't have a clipboard. The clipboard
is provided by desktop frameworks, such as KDE or Gnome.

--
René Pijlman
Mar 8 '06 #2
ah.. ok.
gnome it is.

are there py commands for gnome?

Mar 8 '06 #3
ah.. ok.
gnome it is.

are there py commands for gnome?

Mar 8 '06 #4

On Mar 7, 2006, at 10:00 PM, da*************@gmail.com wrote:
ah.. ok.
gnome it is.

are there py commands for gnome?


Since gnome uses gtk, you're best bet would be to check the pygtk
documentation

---
Andrew Gwozdziewycz
ap****@gmail.com
http://ihadagreatview.org
http://and.rovir.us
Mar 8 '06 #5
>>>>> "Rene" == Rene Pijlman <re********************@my.address.is.invalid> writes:

Rene> da*************@gmail.com:
how can i copy text to the linux clipboard?


Rene> Linux is an operating system. It doesn't have a
Rene> clipboard. The clipboard is provided by desktop frameworks,
Rene> such as KDE or Gnome.

Rene> -- René Pijlman

Actually, Linux is the kernel, and the full system is GNU/Linux, as
RMS would hasten to point out.
Isn't the clipboard a basic X component?
However, for basic text, don't overlook the humble shell facilities
like | , > , < , and >>
R,
Chris
Mar 8 '06 #6
On 2006-03-08, Chris Smith <sm*************@bigfoot.com> wrote:
how can i copy text to the linux clipboard?

Rene> Linux is an operating system. It doesn't have a
Rene> clipboard. The clipboard is provided by desktop frameworks,
Rene> such as KDE or Gnome.

Rene> -- René Pijlman

Actually, Linux is the kernel, and the full system is
GNU/Linux, as RMS would hasten to point out. Isn't the
clipboard a basic X component?


What you're calling "the clipboard" is several basic X
components. More accurately there is no such thing in X as
"the clipboard". The "selection" mechanism in X is rather
complicated and can only partially be made to resemble "a
clipboard" in the traditional MacOS sense of the word.

Some desktop environments have implimented something more akin
to the MacOS "clipboard", but AFAICT that's another layer on
top of the basic selection mechanisms provided by X

--
Grant Edwards grante Yow! NOT fucking!! Also
at not a PACKAGE of LOOSE-LEAF
visi.com PAPER!!
Mar 8 '06 #7
In <11*********************@j33g2000cwa.googlegroups. com>, david.humpherys
wrote:
how can i copy text to the linux clipboard?

I've seen a number of posts explain how to do it with tk....
is this the only way?

(i'm not using tk as my gui tool kit.)


So what are you using instead?

Ciao,
Marc 'BlackJack' Rintsch
Mar 9 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
1
by: ramprasad | last post by:
I am using KDE on linux ( Redhat AS3 ). Is there a library that can give me the contents of the clipboard Thanks Ram
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
4
by: John Salerno | last post by:
I'm interested in trying out Linux, probably Ubuntu, but I was wondering which distribution you guys like to use (because it's a pain trying to decide!) and you guys are smart. And to keep it...
0
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on...
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
1
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
20
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
3
by: Fabian Braennstroem | last post by:
Hi, I would like to write text directly to the clipboard of linux using some c++ lines. Would be nice, if anyone has a suggestion, how to do this. Thanks! Greetings! Fabian
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.