473,320 Members | 1,699 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,320 software developers and data experts.

PyKDE : Can I embed a Konsole?

I'd like to embed a Konsole inside my PyQt-based application. I'm using the
pexpect module extensively and would dearly like to add the ability to read
and write to Konsole sessions from my application (i.e. send commands and
read the output send to Konsole). I would also like to process the output
stream in the normal 'expect' manner and send appropriate input based on
decisions made.

I've seen examples of embeding the KHTML widget but have not yet seen the
same done with a Konsole. Has anyone done it? Is it possible?

My application has the ability to create accounts, set passwords and run
ad-hoc commands across multiple systems - generic 'expect' type
functionality. The ability to connect the expect stream to a Konsole and
thereby monitor the interaction with the remote systems would be very
handy. Further, the ability to switch to 'interactive' mode when
exceptions are raised would allow the user to assume 'manual pilot'
operation during unexpected error conditions.

From the shell, I can use dcop to create new Konsole sessions within
existing Konsole windows. This is not the ideal solution as it does not
appear possible to connect a 'pexpect' session to a Konsole thus launched.
Of course, those Konsoles are also external to my application. Not ideal.

Regards.
Adrian Casey.
Alice Springs Linux User Group
http://www.aslug.org.au

If you've ever used expect, be sure the take a look at pexpect. It can be
found at http://pexpect.sourceforge.net
Jul 18 '05 #1
0 1115

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

Similar topics

2
by: Sam | last post by:
Hey people, I am trying to install these modules to play around with KDE panel applets, but I am beginning to think it's too much trouble to be worth it. I've installed PyQT (as well as the...
1
by: Markus Zimmermann | last post by:
Hi, does anybody of you know, where to get a current snapshot of PyQt and PyKDE ? Thanx, Markus
2
by: Sebastian Rahlf | last post by:
Hi! Does anyone know a good tutorial for pyKDE? Seb. -- Sebastian Rahlf rahlfinformatik.uni-bonn.de
0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
3
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
1
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.