¡@

Home 

python Programming Glossary: self.prompt

Interact with a Windows console application via Python

http://stackoverflow.com/questions/1124884/interact-with-a-windows-console-application-via-python

def __init__ self process prompt self.process process self.prompt prompt self.output self.wait_for_prompt def wait_for_prompt.. self.wait_for_prompt def wait_for_prompt self while not self.prompt.search self.output c self.process.stdout.read 1 if c break..

How to embed a Python interpreter in a PyQT widget

http://stackoverflow.com/questions/2758159/how-to-embed-a-python-interpreter-in-a-pyqt-widget

'' parent None QtGui.QPlainTextEdit.__init__ self parent self.prompt prompt self.history self.namespace self.construct self.setGeometry.. def newPrompt self if self.construct prompt '.' len self.prompt else prompt self.prompt self.appendPlainText prompt self.moveCursor.. if self.construct prompt '.' len self.prompt else prompt self.prompt self.appendPlainText prompt self.moveCursor QtGui.QTextCursor.End..