1 How to use PyQTermWidget
2 ========================
5 Here is a minimal example:
11 # -*- coding: utf-8 -*-
13 from PyQt4.QtGui import QApplication
14 from pyqterm import TerminalWidget
17 if __name__ == "__main__":
18 app = QApplication(sys.argv)
19 win = TerminalWidget()
26 Look into *demo.py* for a more complete example with a tabbed terminal
30 .. image:: screenshot2.png
33 The constructor has the following signature:
35 * def __init__(self, parent=None, command="/bin/bash", font_name="Monospace", font_size=18)
38 The widget has the following methods:
40 * execute(command="/bin/bash")
43 * pid() -> process id (int)
46 * text_selection() -> string
50 * column_count() -> int
54 TerminalWidget inherits directly from QWidget, so it has show, hide,
58 The widget emits the following signals: