code: def classinstances(cls):
          
          l = [i for i in cls.allinstances() if type(i) == cls]
          return l
docs: Return all instances of the current class
  
          JB_Gui will not return the instances of subclasses
          A subclass will only return the instances that have the same
          type as the subclass. So it won\'t return instances of further subclasses.
  
          :returns: all instnaces of the current class
          :rtype: list
          :raises: None