Esempio n. 1
0
    def _resolveBaseclass(self, baseClass):
        try:
            for x in range(0, 10):
                try: return strict_getattr(QtWidgets, baseClass)
                except AttributeError: pass

                baseClass = self._widgets[baseClass][0]
            else:
                raise ValueError("baseclass resolve took too long, check custom widgets")

        except KeyError:
            raise ValueError("unknown baseclass %s" % baseClass)
Esempio n. 2
0
    def _resolveBaseclass(self, baseClass):
        try:
            for x in range(0, 10):
                try:
                    return strict_getattr(QtWidgets, baseClass)
                except AttributeError:
                    pass

                baseClass = self._widgets[baseClass][0]
            else:
                raise ValueError(
                    "baseclass resolve took too long, check custom widgets")

        except KeyError:
            raise ValueError("unknown baseclass %s" % baseClass)
Esempio n. 3
0
 def search(clsname):
     try:
         return strict_getattr(QtWidgets, clsname)
     except AttributeError:
         return None
Esempio n. 4
0
 def search(clsname):
     try:
         return strict_getattr(QtWidgets, clsname)
     except AttributeError:
         return None