Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def verifier(client=None):
    #First we verify how many cards we are dealing with, if any. Quit if none
    #are found.
    if client is not None:
        client.send_string("verifier")
        message = client.recv_string()
        return int(message)
    else:
        cards = 0
        if path.isdir("/sys/class/drm/card0"):
            cards += 1
        if path.isdir("/sys/class/drm/card1"):
            cards += 1
        if cards == 0:
            sys.exit("No suitable cards found.\nAre you using the OSS Radeon \
    drivers?\nExiting the program.")
        return cards
        


src/r/a/Radeon-tray-HEAD/radeontray/radeontrayclient.py   Radeon-tray(Download)
from os import path
from PyQt4 import QtGui, QtCore
from .utils import last_power_status_get, \
    power_method_set, \
    power_profile_set, \
def main():
    """Main function
    """
    cards = verifier()
    init_method, init_profile = power_status_get(client=SOCKET).split(",")

src/r/a/Radeon-tray-HEAD/radeontray/radeonpmserver.py   Radeon-tray(Download)
"""
import zmq
from .utils import power_method_set, \
    power_profile_set, \
    power_status_get, \
    radeon_info_get, \
    verifier
 
PORT = "5556"
CARDS = verifier()
            SOCKET.send_string(radeon_info_get())
        elif message == "verifier":
            SOCKET.send_string(str(verifier()))
        elif message == "powerstatus":
            SOCKET.send_string(power_status_get())