def _enabled_changed(self):

        self.tool_bar.EnableTool(self.control_id, self.enabled and self.visible)

        return
Returns 0 for points, 1 for lines, and 2 for surfaces.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_Tool._enabled_changed--crossover with--dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/geometries.py/OGRGeometry.dimension