Пример #1
0
 def __len__(self):
     """
     Return the amount of all properties defined on this device.
     """
     number_of_properties, property_atoms = xinput.list_properties(
         self.display, self.id)
     with scoped_pointer(property_atoms, xlib.free):
         return number_of_properties
Пример #2
0
 def __len__(self):
     """
     Return the amount of all properties defined on this device.
     """
     number_of_properties, property_atoms = xinput.list_properties(
         self.display, self.id)
     with scoped_pointer(property_atoms, xlib.free):
         return number_of_properties
Пример #3
0
 def _iter_property_atoms(self):
     number_of_properties, property_atoms = xinput.list_properties(
         self.display, self.id)
     with scoped_pointer(property_atoms, xlib.free):
         for i in xrange(number_of_properties):
             yield Atom(self.display, property_atoms[i])
Пример #4
0
 def _iter_property_atoms(self):
     number_of_properties, property_atoms = xinput.list_properties(
         self.display, self.id)
     with scoped_pointer(property_atoms, xlib.free):
         for i in xrange(number_of_properties):
             yield Atom(self.display, property_atoms[i])