Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / PlainTextEdit
Last active February 20, 2021 10:12
PyQt5 QPlainTextEdit
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import (QFile, QFileInfo, QPoint, QSettings, QSize, Qt, QTextStream, QByteArray,
QDir, QIODevice, QResource, QEvent)
from PyQt5.QtGui import QIcon, QKeySequence, QTextCursor, QTextCharFormat, QPalette
from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog, QMainWindow, QMessageBox,
QTextEdit, QPushButton, QLineEdit, QMenu, QInputDialog)
from PyQt5 import QtPrintSupport
from sys import argv, exit
@Axel-Erfurt
Axel-Erfurt / myDownloader.py
Created December 21, 2017 21:14
Python PyQt4 Downloader with progressbar
# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from urllib2 import *
class DownloaderApp(QtGui.QMainWindow):
def __init__(self, parent = None):
super(DownloaderApp, self).__init__(parent)
@Axel-Erfurt
Axel-Erfurt / PyEdit2.py
Last active April 9, 2024 02:03
Python Editor (created with PyQt5)
#!/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,