2012-09-10 19:16:37 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<title>Help Python Console</title>
|
|
|
|
<style>
|
|
|
|
body{
|
|
|
|
font-family: verdana,arial,helvetica,sans-serif;
|
|
|
|
/*font-family:Verdana,Geneva,sans-serif;*/
|
|
|
|
font-size : 12px;
|
|
|
|
}
|
2012-09-26 02:02:05 +02:00
|
|
|
#header{
|
2012-09-28 14:06:49 +02:00
|
|
|
background: #cccccc;
|
2012-09-26 02:02:05 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
2012-09-28 14:06:49 +02:00
|
|
|
#headerTool td{
|
|
|
|
background: #f6f6f6;
|
|
|
|
/*width: 100%;*/
|
|
|
|
}
|
2012-09-10 19:16:37 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2012-09-26 02:02:05 +02:00
|
|
|
<table id="header">
|
2012-09-10 19:16:37 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img src="../iconConsole/imgHelpDialog.png" />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<h2>Python Console for QGIS</h2>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<p align="justify">
|
2012-09-26 02:02:05 +02:00
|
|
|
Python Console based on pyScintilla. (Developed by Salvatore Larosa)
|
2012-09-11 16:05:52 +02:00
|
|
|
<br><br>
|
2012-09-10 19:16:37 +02:00
|
|
|
To access Quantum GIS environment from this console
|
|
|
|
use qgis.utils.iface object (instance of QgisInterface class).
|
|
|
|
To import the class QgisInterface can also use the dedicated
|
|
|
|
button on the toolbar on the left.
|
|
|
|
</p>
|
2012-09-26 02:02:05 +02:00
|
|
|
<table id="header">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h4>Features</h4>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<p align="justify">
|
2012-09-27 00:13:25 +02:00
|
|
|
<ul>
|
2012-09-26 02:02:05 +02:00
|
|
|
<li>Auto-completion and highlighting syntax for the following APIs:
|
|
|
|
<ol>
|
|
|
|
<li>Python</li>
|
|
|
|
<li>PyQGIS-master</li>
|
|
|
|
<li>PyQt4</li>
|
|
|
|
<li>QScintilla2</li>
|
|
|
|
<li>osgeo-gdal-ogr</li>
|
|
|
|
</ol>
|
|
|
|
</li>
|
|
|
|
<br>
|
2012-09-27 00:13:25 +02:00
|
|
|
<li>CTRL+SPACE to view the auto-completion list.</li>
|
|
|
|
<br>
|
|
|
|
<li>CTRL+ALT+SPACE to view the command history list.</li>
|
|
|
|
<br>
|
2012-09-28 14:06:49 +02:00
|
|
|
<li>Saves the command history by typing <b>_save</b> or closing the widget.<br>
|
2012-09-27 00:13:25 +02:00
|
|
|
This command saves the history command in the file ~/.qgis/console_history.txt
|
|
|
|
</li>
|
|
|
|
<br>
|
2012-09-28 14:06:49 +02:00
|
|
|
<li>Clears the command history by typing <b>_clear</b>.<br>
|
|
|
|
This command clears the command history from file ~/.qgis/console_history.txt
|
2012-09-27 00:13:25 +02:00
|
|
|
</li>
|
|
|
|
<br>
|
|
|
|
<li>Clears completely command history by typing <b>_clearAll</b>.<br>
|
2012-09-28 14:06:49 +02:00
|
|
|
This command clears completely the command history. It has an irreversible effect.
|
2012-09-27 00:13:25 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
2012-09-26 02:02:05 +02:00
|
|
|
</p>
|
|
|
|
<table id="header">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h4>Toolbar</h4>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<p>The following is a description of the tools in the toolbar:</p>
|
2012-09-28 14:06:49 +02:00
|
|
|
<table width="100%" border="0" id="headerTool">
|
2012-09-10 19:16:37 +02:00
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td><img src="../iconConsole/iconClearConsole.png" /></td>
|
|
|
|
<td colspan="2">Tool to clear python console</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td><img src="../iconConsole/iconClassConsole.png" /></td>
|
|
|
|
<td><img src="../iconConsole/iconIfaceConsole.png" /></td>
|
|
|
|
<td>Tool to import iface class</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td></td>
|
|
|
|
<td><img src="../iconConsole/iconSextanteConsole.png" /></td>
|
|
|
|
<td>Tool to import Sextante class</td>
|
2012-09-14 01:18:04 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td><img src="../iconConsole/iconScriptConsole.png" /></td>
|
|
|
|
<td><img src="../iconConsole/iconOpenConsole.png" /></td>
|
|
|
|
<td>Tool to open a python script and load in console</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td></td>
|
|
|
|
<td><img src="../iconConsole/iconSaveConsole.png" /></td>
|
|
|
|
<td>Tool to save a python script</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td><img src="../iconConsole/iconHelpConsole.png" /></td>
|
|
|
|
<td colspan="2">Help</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-09-28 14:06:49 +02:00
|
|
|
<td><img src="../iconConsole/iconRunConsole.png" /></td>
|
|
|
|
<td colspan="2">Run command (like Enter key pressed)</td>
|
2012-09-10 19:16:37 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
2012-09-26 02:02:05 +02:00
|
|
|
<br>
|
|
|
|
<table id="header">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h4>Acknowledgments</h4>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
Thanks to Larry Shaffer who provided the API files.
|
|
|
|
</p>
|
2012-09-10 19:16:37 +02:00
|
|
|
</body>
|
2012-09-26 02:02:05 +02:00
|
|
|
</html>
|