This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from zipfile import ZipFile | |
import base64 | |
import logging | |
import argparse | |
import sys | |
from pathlib import Path | |
from typing import Iterable, Optional | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtWidgets import QLineEdit | |
from PyQt5 import QtCore | |
from PyQt5.QtCore import Qt | |
""" Extension of QLineEdit with a possibility to catch shortcuts. | |
Standard QKeySequenceEdit is too slow and does not make any difference between numpad and normal keys. | |
""" | |
class ShortcutEdit(QLineEdit): | |
"""This signal is emitted whenever a new key or modifier is pressed |