Skip to content

Instantly share code, notes, and snippets.

View Sl-Alex's full-sized avatar

Oleksii Slabchenko Sl-Alex

View GitHub Profile
@Sl-Alex
Sl-Alex / whiteboard_extract.py
Created September 24, 2025 12:28
Extract images from Microsoft Whiteboard export (.zip)
#!/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:
@Sl-Alex
Sl-Alex / ShortcutEdit.py
Last active August 21, 2022 20:42
Extension of QLineEdit with a possibility to catch shortcuts
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