(gtype)
return [_to_string(g_flags_class.values[i].value_nick)
            for i in range(g_flags_class.n_values)]
Get all values for a flag (gtype).
Get all values for a flag (gtype).
Get all values for a flag ( gtype ) .
def values_for_flag(gtype):
    """Get all values for a flag (gtype)."""

    g_type_class = gobject_lib.g_type_class_ref(gtype)
    g_flags_class = ffi.cast('GFlagsClass *', g_type_class)

    return [_to_string(g_flags_class.values[i].value_nick)
            for i in range(g_flags_class.n_values)]
def values_for_flag ( gtype ) : g_type_class = gobject_lib . g_type_class_ref ( gtype ) g_flags_class = ffi . cast ( 'GFlagsClass *' , g_type_class ) return [ _to_string ( g_flags_class . values [ i ] . value_nick ) for i in range ( g_flags_class . n_values ) ]