Skip to content

Commit b877cc8

Browse files
committed
refactor(gui-base64): drop PyQt4 and PySide compatibility
1 parent 0d20780 commit b877cc8

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

‎Base64_examples/gui_base64.py‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,9 @@
1818
QSizePolicy.Preferred = QSizePolicy.Policy.Preferred
1919
Qt.TextSelectableByMouse = Qt.TextInteractionFlag.TextSelectableByMouse
2020

21-
except:
22-
try:
23-
from PyQt5.QtWidgets import *
24-
from PyQt5.QtCore import *
25-
26-
except:
27-
try:
28-
from PyQt4.QtGui import *
29-
from PyQt4.QtCore import *
30-
31-
except:
32-
from PySide.QtGui import *
33-
from PySide.QtCore import *
21+
except ImportError:
22+
from PyQt5.QtWidgets import *
23+
from PyQt5.QtCore import *
3424

3525

3626
def log_uncaught_exceptions(ex_cls, ex, tb) -> None:

0 commit comments

Comments
 (0)