This file contains 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
"""Primitive terminal emulator example made from a PyQt QTextEdit widget.""" | |
import fcntl, locale, os, pty, struct, sys, termios | |
import subprocess # nosec | |
# Quick hack to limit the scope of the PyLint warning disabler | |
try: | |
# pylint: disable=no-name-in-module | |
from PyQt5.QtCore import Qt, QSocketNotifier # type: ignore | |
from PyQt5.QtGui import QFont, QPalette, QTextCursor # type: ignore |
This file contains 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/python3 | |
# -- coding: utf-8 -- | |
from __future__ import print_function | |
from PyQt5.QtWidgets import (QPlainTextEdit, QWidget, QVBoxLayout, QApplication, QFileDialog, QMessageBox, QLabel, QCompleter, | |
QHBoxLayout, QTextEdit, QToolBar, QComboBox, QAction, QLineEdit, QDialog, QPushButton, | |
QToolButton, QMenu, QMainWindow, QInputDialog, QColorDialog, QStatusBar, QSystemTrayIcon) | |
from PyQt5.QtGui import (QIcon, QPainter, QTextFormat, QColor, QTextCursor, QKeySequence, QClipboard, QTextDocument, | |
QPixmap, QStandardItemModel, QStandardItem, QCursor) | |
from PyQt5.QtCore import (Qt, QVariant, QRect, QDir, QFile, QFileInfo, QTextStream, QSettings, QTranslator, QLocale, |
This file contains 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/python3 | |
import sys | |
import os | |
import argparse | |
from os import path | |
from pprint import pprint | |
from tempfile import TemporaryDirectory |