The KNODA scripting tutorial
Prev |  | Next

# The KNODA scripting tutorial

### Horst Knorr

`<hk_classes@knoda.org>`

Version 0.0.3

Abstract

KNODA, or more exactly the hk_classes library, has an integrated Python interpreter. For further information about Python see http://www.python.org. This tutorial will not teach Python, it will only show the hk_classes/python interface. This tutorial is by no means complete, it only exists now because the final documentation hasn't been written yet.

The examples in this tutorial are based on the tables as described in the KNODA tutorial.

List of Figures

2.1. Geometry specific methods
2.2. Look and Feel methods
2.3. Miscelleanous methods
2.4. Predefined colour names
3.1. hk_classes overview
3.2. description of the most important classes
3.3. hk_datasource methods
3.4. hk_column data methods
3.5. hk_column type methods
3.6. hk_dsdatavisible methods
5.1. hk_column type methods

List of Examples

1.1. Hello world-program
2.1. Changing colour and position
3.1. rowposition
3.2. find a specific column
3.3. Read data
3.4. Write data
3.5. Search data
3.6. Read data
3.7. Write data
3.8. Search data
3.9. displaying a form
3.10. displaying a report
3.11. reportdata onprint
4.1. Python module basics
5.1. Show data
5.2. Execute a "SELECT" query
5.3. Execute an action query
5.4. create table
5.5. calculated values
5.6. default values
5.7. Macro example
5.8. Macro example (part II)
5.9. Formatting a number
5.10. Printing alternate colours
5.11. Setting the taborder
5.12. Setting the taborder for a specific field
5.13. Reacting on keyboard input
5.14. Loading a file content into a field
5.15. Copy data from an existing datasource to an existing table in the same database
5.16. Copy data from an existing datasource to an existing table in different databases (also different server backends)
5.17. Copy data from an existing datasource to a new table

Prev |  | Next
|  | Chapter 1. The various actions