473,397 Members | 2,033 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,397 software developers and data experts.

Controlling kwrite by dcop

Hi all,
in my cross-reference tool I have the need to highlight the variables
(by printing them in bold).
I am using the kwrite editor, and I am not able to control it from
python.
I was thinking of various solutions:
- consider the text file as html and use <b>...</b>
- use LaTex
- define a "new" language for kwrite with reserved words made up of the
cross-referenced variables (and so printed in bold).
etc..
Googling around I found:
http://phil.freehackers.org/kde/kde-...-techno-2.html

Python code to make a DCOP call
-------------------------------
#!/usr/bin/env python

from dcop import *

app = DCOPApplication("kwrite")
app.KWriteIface.insertText("This text was inserted from a python
shell!!!", 0)

app = DCOPApplication("konqueror")
app.KonquerorIface.createNewWindow("http://developer.kde.org")
As you can see you can interact with kwrite from dcop.
Unfortunately I don't have this module in my Python (2.3) nor I have
been able to find it.
Can you help me? Or have you a better solution for printing selected
parts of a text file in bold, without possibly changing the editor?

Jul 19 '05 #1
1 1711
On Sunday 08 May 2005 13:41, qw******@yahoo.it wrote:
As you can see you can interact with kwrite from dcop.
Unfortunately I don't have this module in my Python (2.3) nor I have
been able to find it.


It's normally installed seperately from the main kde libraries - on gentoo
it's a package called dcoppython, that might help you in your search if
you're on a different distro.

james.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCfhKeY6W16wIJgxQRAsi6AKCWr1CGdm6cC5H4X3vmPa CrmP25hACcDgs7
G04/lydRvfQZQ1bUJ3OgXSk=
=GQMa
-----END PGP SIGNATURE-----

Jul 19 '05 #2

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

Similar topics

0
by: martin z | last post by:
I'm having a lot of trouble figuring out the details of controlling Python compiling. I can compile and embed just fine, but I want some finer granularity on what gets compiled into Python. I can...
0
by: Bart Simpson | last post by:
Hi, I would like to create/delete ftp accounts of windows IIS, and to control MS Media Service under windows 2003 by Python program. A few days ago, I found there is iisftp.vbs vb-script that...
2
by: Skip Montanaro | last post by:
I updated the patch that supports PEP 304, "Controlling Generation of Bytecode Files" to apply cleanly against current CVS. I've tested it on Mac OS X (straight Unix build only). I'd appreciate...
3
by: yadavindrian01 | last post by:
Hi everybody I am a student of computer engg. I have to make a project - controlling devices through computer using parallel port. I know necessary details of the parallel port. Please guide...
2
by: qwweeeit | last post by:
Hi all, at the end I upgraded to 2.4, but now I am not able to load dcop module (part of the Python-KDE3 bindings). Any help? Bye.
8
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
1
by: Jeffrey Barish | last post by:
The package python-dcop makes it possible to use DCOP from Python. Does anyone know of a tutorial for this package or an example of its use? I would like to use it to read a journal entry in...
5
by: TimDGCB | last post by:
Hello, I'm writing a python script for Amarok, I communicate with Amarok using DCOP. Now, I have to call DCOP very often and I noticed that every time I make a DCOP call my program keeps...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.