コード例 #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)
コード例 #2
0
ファイル: qobjectcreator.py プロジェクト: f3nix/pyside2-tools
    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)
コード例 #3
0
 def search(clsname):
     try:
         return strict_getattr(QtWidgets, clsname)
     except AttributeError:
         return None
コード例 #4
0
ファイル: qobjectcreator.py プロジェクト: f3nix/pyside2-tools
 def search(clsname):
     try:
         return strict_getattr(QtWidgets, clsname)
     except AttributeError:
         return None