示例#1
0
    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
示例#2
0
    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
示例#3
0
 def get_edge(self):
     '''Get edge.'''
     if EDGE_DICT.has_key(self.cursor_type):
         return EDGE_DICT[self.cursor_type]
     else:
         return None