Logo Search packages:      
Sourcecode: kde-guidance version File versions  Download package

def displayconfigabstraction::Screen::getRefreshRateIndex (   self  ) 

Get the current refresh rate index for this screen.

Returns an index into the list of refresh rates. See getAvailableRefreshRates().

Definition at line 1984 of file displayconfigabstraction.py.

01984                                  :
        """Get the current refresh rate index for this screen.
        
        Returns an index into the list of refresh rates. See getAvailableRefreshRates().
        """
        rates = self.getAvailableRefreshRates()
        i = 0
        for r in rates:
            if r>=self.currentrefreshrate:
                return i
            i += 1
        return len(rates)-1
        
    def setRefreshRateIndex(self,index):


Generated by  Doxygen 1.6.0   Back to index