GWeather.Conditions

Fields

Name Type Access Description
phenomenon GWeather.ConditionPhenomenon r/w the main weather phenomenon
qualifier GWeather.ConditionQualifier r/w a modifier for phenomenon
significant bool r/w True if the struct contains usable data, False otherwise

Methods

  to_string ()
  to_string_full (options)

Details

class GWeather.Conditions

A convenient way to describe the current or forecast weather phenomenon, if significant, and its associated modifier. If the value is not significant, the weather conditions are described by GWeather.Info.get_sky() instead.

In general it is discouraged to use this value directly to compute the forecast icon: applications should instead use GWeather.Info.get_icon_name() or GWeather.Info.get_symbolic_icon_name().

to_string()
Return type:str
to_string_full(options)
Parameters:options (GWeather.FormatOptions) –
Return type:str