Graphics Reference
In-Depth Information
pass
def setStartingPoint(self):
pass
def setEndingPoint(self):
pass
def findShortestPath(self):
pass
The last part of the forestTrails.py module is the main() function, which is
called when the program is run:
def main():
QgsApplication.setPrefixPath(os.environ['QGIS_PREFIX'],
True)
QgsApplication.initQgis()
app = QApplication(sys.argv)
window = ForestTrailsWindow()
window.show()
window.raise_()
window.setPanMode()
app.exec_()
app.deleteLater()
QgsApplication.exitQgis()
if __name__ == "__main__":
main()
Once again, this is almost identical to the code we saw earlier in the Lex application.
This completes our initial implementation of the forestTrails.py module. Our next
step is to create the module that will hold all our map tools.
Search WWH ::




Custom Search