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
# For commandline argv | |
import sys | |
# For PE parsing | |
import pefile | |
# Convert value to 4 bytes | |
def val_to_b(value): | |
return value.to_bytes(4, byteorder="little") | |
## Constants to search |
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 import QtCore, QtWidgets | |
class FlowLayout(QtWidgets.QLayout): | |
def __init__(self, parent=None, margin=0, spacing=-1): | |
super().__init__(parent) | |
if parent is not None: | |
self.setContentsMargins(margin) | |
self.setSpacing(spacing) |