473,786 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4024
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.co m
http://ihadagreatview.org
http://and.rovir.us
Mar 8 '06 #5
>>>>> "Rene" == Rene Pijlman <re************ ********@my.add ress.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************ *********@j33g2 000cwa.googlegr oups.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
11478
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 database, and I need the data to be laid out in a tabular format, and set out in a specific way. At the current point in time, I am copy/pasting the raw text from the database into a table layout in InDesign. What I was thinking is that if I could...
1
2491
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
11640
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 is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
4
1754
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 Python related, I'll also ask, is there anything special I need to know about using Python on Linux? Do any things change, or can it be used just as I use it on Windows? Thanks!
0
1905
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 the clipboard so it can be pasted into this other application. My solution is working fine with all applications (mspaint, word, wordpad) except the one I need it to work with. I've contacted the vendor of the application, but I haven't been able...
15
12305
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 Clipboard class to get an EnhancedMetafile or MetafilePict object from the Clipboard, use that to create a new Metafile object, and then draw that Metafile object using Graphics.DrawImage. It doesn't seem to be that simple.
1
18671
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 window (any application) to copy whatever text is selected to the clipboard. It then issues a C# Clipboard.GetText(...) and does some processing with this string. All is good, no errors thus far.
20
7016
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 lData.GetDataPresent(DataFormats.Bitmap) Then Dim lPictureBox As New PictureBox
3
3961
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
9650
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8992
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.