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

embedding console in wxpython app

I'm writing a Linux filemanager using wxPython. I'd like to embed a
bash console inside it. I have found the Logilab pyqonsole
(http://www.logilab.org/projects/pyqonsole), but it uses PyQT.

Does anyone know how to do this from wx?
Is it possible to embed a PyQT widget inside wxPython?

Thanks!
Janto

Aug 6 '06 #1
2 3782
Janto Dreijer wrote:
I'm writing a Linux filemanager using wxPython. I'd like to embed a
bash console inside it. I have found the Logilab pyqonsole
(http://www.logilab.org/projects/pyqonsole), but it uses PyQT.

Does anyone know how to do this from wx?
Is it possible to embed a PyQT widget inside wxPython?

Thanks!
Janto

How about just using bash and rerouting stdin/stdout ?

Philippe

Aug 6 '06 #2

Philippe Martin wrote:
Janto Dreijer wrote:
I'm writing a Linux filemanager using wxPython. I'd like to embed a
bash console inside it. I have found the Logilab pyqonsole
(http://www.logilab.org/projects/pyqonsole), but it uses PyQT.

Does anyone know how to do this from wx?
Is it possible to embed a PyQT widget inside wxPython?

Thanks!
Janto


How about just using bash and rerouting stdin/stdout ?
What is that thing in Software Engineering (SE) ? that it is hard to
find simple solutions (or any problem in life for that matter)

I remember last year at uni we had to write this program (get
information from user save it somewhere) for a SE assignment. And half
the teams went off and used MySql to save data retrieved from the user
via a GUI. And in no part of the requirements document did it write ;

* Customer requires GUI frontend
* Customer needs MySql databases server usage to store data

So my team created a Command Line Program (i.e cmd module in python) as
the UI and used object Serialization (pickling in python) to files. So
we finished in half the time that other teams took (and many had to
drop the database server usage in the end) and stressed like tomorow
was Judgement Day. Oh yeah we designed our application so that it was
easy to create a GUI or change the Serialization to saving stuff into a
database and we had one of the top marks out of all the teams.

So OP, if you really dont need to embed bash inside wxPython, then dont
and use what Philippe suggested, unless its in the requirements :)

Cheers

Aug 7 '06 #3

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

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
5
by: Max Powers | last post by:
I've spent an interesting day searching the web for help with calling OCaml functions from a python program and have come to the newsgroup for some advice (unfortunately I'm learning both languages...
2
by: dr_tyson | last post by:
I am trying to embed images into a wxPython app (created using Boa Constructor), but have not been able to do so. I know how to embed plots, but images seem to be a problem. I've tried using code...
1
by: gavinpaterson | last post by:
Dear Pythoners, I am writing as I am having trouble embedding a Python program into a Win XP C++ console application. I have written a script file for importing and I am trying to use the...
7
by: Mr. Roboto | last post by:
Folks: I want to embark on a project to add Python (actually, wxPython or PythonWin) to a new Windows app I want to start writing soon. Essentially, I want to take VB6 (or pos Delphi) and...
3
by: Jerry | last post by:
I have created an application using wxPython and compiled it using py2exe. When I put setup(console=) in my setup.py file, the resulting application runs just fine. But when I change it to...
0
by: Soren | last post by:
Hi, I've been trying to embed matplotlib in wxpython. I want to be able to put a figure (axes) in a wx.Panel and place it somewhere in my GUI. The GUI should have other panels with buttons etc....
0
by: Thomas Schreiner | last post by:
Hi, I'm extending a windows application (C++) by embedding Python calls. It seems to be a known problem that windows applications detach immediately from the calling console, so that all output...
2
by: RossGK | last post by:
Just getting used to the PyDev environment in eclipse by playing with a few simple programs. I'm also using wxPython GUI stuff. I've noticed though that simple print commands in my code cause a...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.