Atom.intern

Finds or creates an atom corresponding to a given string.

class Atom
static
intern
(
string atomName
,)

Parameters

atomName string

a string.

onlyIfExists bool

if true, GDK is allowed to not create a new atom, but just return GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.

Return Value

Type: gdk.atom.Atom

the atom corresponding to atom_name.