コード例 #1
0
ファイル: window_base.py プロジェクト: Jiarui315/deepin-ui
    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
ファイル: window_base.py プロジェクト: masums/deepin-ui
    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
ファイル: mplayer_window.py プロジェクト: netphi/deepin-ui
 def get_edge(self):
     '''Get edge.'''
     if EDGE_DICT.has_key(self.cursor_type):
         return EDGE_DICT[self.cursor_type]
     else:
         return None