Gdk.Atom¶
Fields¶
None
Methods¶
class |
|
class |
|
|
Details¶
- class Gdk.Atom¶
An opaque type representing a string as an index into a table of strings on the X server.
- classmethod intern(atom_name, only_if_exists)[source]¶
- Parameters:
- Returns:
the atom corresponding to atom_name.
- Return type:
Finds or creates an atom corresponding to a given string.
- classmethod intern_static_string(atom_name)[source]¶
- Parameters:
atom_name (
str
) – a static string- Returns:
the atom corresponding to atom_name
- Return type:
Finds or creates an atom corresponding to a given string.
Note that this function is identical to
Gdk.Atom.intern
() except that if a newGdk.Atom
is created the string itself is used rather than a copy. This saves memory, but can only be used if the string will always exist. It can be used with statically allocated strings in the main program, but not with statically allocated memory in dynamically loaded modules, if you expect to ever unload the module again (e.g. do not use this function in GTK+ theme engines).New in version 2.10.