Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.Tasks.TasksFile</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.Tasks.TasksFile</h1> <p> Module implementing a class representing the tasks JSON file. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#TasksFile">TasksFile</a></td> <td>Class representing the tasks JSON file.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="TasksFile" ID="TasksFile"></a> <h2>TasksFile</h2> <p> Class representing the tasks JSON file. </p> <h3>Derived from</h3> QObject <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#TasksFile.__init__">TasksFile</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#TasksFile.readFile">readFile</a></td> <td>Public method to read the tasks data from a task JSON file.</td> </tr> <tr> <td><a href="#TasksFile.writeFile">writeFile</a></td> <td>Public method to write the tasks data to a tasks JSON file.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="TasksFile.__init__" ID="TasksFile.__init__"></a> <h4>TasksFile (Constructor)</h4> <b>TasksFile</b>(<i>isGlobal: bool, parent: QObject = None</i>) <p> Constructor </p> <dl> <dt><i>isGlobal</i> (bool)</dt> <dd> flag indicating a file for global tasks </dd> <dt><i>parent</i> (QObject (optional))</dt> <dd> reference to the parent object (defaults to None) </dd> </dl> <a NAME="TasksFile.readFile" ID="TasksFile.readFile"></a> <h4>TasksFile.readFile</h4> <b>readFile</b>(<i>filename: str</i>) <p> Public method to read the tasks data from a task JSON file. </p> <dl> <dt><i>filename</i> (str)</dt> <dd> name of the project file </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating a successful read </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <a NAME="TasksFile.writeFile" ID="TasksFile.writeFile"></a> <h4>TasksFile.writeFile</h4> <b>writeFile</b>(<i>filename: str</i>) <p> Public method to write the tasks data to a tasks JSON file. </p> <dl> <dt><i>filename</i> (str)</dt> <dd> name of the tasks file </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating a successful write </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>