|
Revision 11450, 0.5 KB
(checked in by radix, 6 years ago)
|
|
MIT LICENSE: new LICENSE file and new preambles for all .py files. This is not all.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | def reset(): |
|---|
| 6 | resetFilenum() |
|---|
| 7 | setNumberSections(False) |
|---|
| 8 | |
|---|
| 9 | def resetFilenum(): |
|---|
| 10 | setFilenum(0) |
|---|
| 11 | |
|---|
| 12 | def setFilenum(arg): |
|---|
| 13 | global filenum |
|---|
| 14 | filenum = arg |
|---|
| 15 | |
|---|
| 16 | def getFilenum(): |
|---|
| 17 | global filenum |
|---|
| 18 | return filenum |
|---|
| 19 | |
|---|
| 20 | def getNextFilenum(): |
|---|
| 21 | global filenum |
|---|
| 22 | filenum += 1 |
|---|
| 23 | return filenum |
|---|
| 24 | |
|---|
| 25 | def setNumberSections(arg): |
|---|
| 26 | global numberSections |
|---|
| 27 | numberSections = arg |
|---|
| 28 | |
|---|
| 29 | def getNumberSections(): |
|---|
| 30 | global numberSections |
|---|
| 31 | return numberSections |
|---|
| 32 | |
|---|
| 33 | reset() |
|---|