[Eric] PyQt4 realtime interactive shell

Detlev Offenbach detlev at die-offenbachs.de
Sun Dec 21 14:39:01 GMT 2008


Hi,

the problem is, that the debugger backend, which is supplying the Python shell 
function as well, is not using the raw_input method. Therefore, the 
PyOS_InputHook() method is not called. 

Does anybody know how to call this later method from a Python program?

Regards,
Detlev

On Sonntag, 21. Dezember 2008, Shem Valentine wrote:
> After some more searching I found quite a long thread on this same
> issue.  Sorry I didn't find it earlier.
>
> Looks like the best solution is to have ipython running in a terminal
> when I need to perform tasks such as this.  I know this is may be a
> repeat, but it would be great if eric could integrate ipython somehow.
> It may not even be possible, that's for people much smarter than I.
>
> Thanks,
> -Shem
>
> Shem Valentine wrote:
> > Hello Gurus,
> >
> > I am a beginner to both python and pyqt, so I apoligize in advance if
> > this question seems quite simple.
> >
> > Since I am such a beginner I need to play with a few functions/methods
> > of PyQt and see what their result is.  I can do this quite easily from
> > the IDLE shell.
> >
> > For Example:
> >
> > I'll import my mainwindow class
> >
> > Do the standard
> >  a = QApplication([])
> >  w = MyMainWindow()
> >  w.show()
> >
> > Then I can play with the Widgets
> >  w.lineedit.displayText()
> >  w.lineedit.setText()
> >  etc
> >
> >
> > The Problem:
> >
> > When I run my app in eric4 I don't get the ">>>" prompt, and as such
> > can't play with my widget methods realtime.
> >
> > If I remove the main .show() method, I can get a ">>>" prompt and run
> > these methods, but I can't get the window to display.  I'll run w.show()
> > and nothing will happen, I'll run w.hide() and the screen will flicker,
> > but still nothing.
> >
> > I would love to be able to do this in eric4, and I imagine it's just
> > something simple I'm missing.  Any help/guide on doing this would be
> > greatly appreciated.
> >
> > Thanks,
> > -Shem
> >
> >
> >
> > _______________________________________________
> > Eric mailing list
> > Eric at riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/eric
>
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric



-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list