def get_edge(self): ''' Get the edge which the cursor is on, according to the cursor type. @return: If there is a corresponding cursor type, an instance of gtk.gdk.WindowEdge is returned, else None is returned. ''' if EDGE_DICT.has_key(self.cursor_type): return EDGE_DICT[self.cursor_type] else: return None
def get_edge(self): '''Get edge.''' if EDGE_DICT.has_key(self.cursor_type): return EDGE_DICT[self.cursor_type] else: return None