Graphics Reference
In-Depth Information
else:
self.setPanMode()
Finally, add a new onTrackDeleted() method to respond when the user deletes a
track:
def onTrackDeleted(self):
self.modified = True
self.mapCanvas.refresh()
self.actionDeleteTrack.setChecked(False)
self.setPanMode()
With this map tool, we now have all of the necessary logic for adding, editing, and delet-
ing tracks. We now have a complete mapping application for maintaining a database of
forest trails, and you can use this program to enter as many tracks as you want.
Search WWH ::




Custom Search