Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / PyEdit2.py
Last active Jun 18, 2021
Python Editor (created with PyQt5)
View PyEdit2.py
#!/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,
@Axel-Erfurt
Axel-Erfurt / myDownloader.py
Created Dec 21, 2017
Python PyQt4 Downloader with progressbar
View myDownloader.py
# -*- 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 / PlainTextEdit
Last active Feb 20, 2021
PyQt5 QPlainTextEdit
View PlainTextEdit
#!/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 / RichTextEdit.py
Last active Mar 23, 2021
RichTextEditor (PyQt5)
View RichTextEdit.py
#!/usr/bin/python3
# -- coding: utf-8 --
from PyQt5.QtWidgets import QTextEdit, QWidget, QVBoxLayout, QApplication, QFileDialog, QMessageBox, QHBoxLayout, \
QToolBar, QComboBox, QAction, QLineEdit, QMenu, QMainWindow, QActionGroup, \
QFontComboBox, QColorDialog, QInputDialog, QPushButton, QPlainTextEdit
from PyQt5.QtGui import QIcon, QPainter, QTextFormat, QColor, QTextCursor, QKeySequence, QClipboard, \
QTextCharFormat, QTextCharFormat, QFont, QPixmap, QFontDatabase, QFontInfo, QTextDocumentWriter, \
QImage, QTextListFormat, QTextBlockFormat, QTextDocumentFragment, QKeyEvent
from PyQt5.QtCore import Qt, QDir, QFile, QFileInfo, QTextStream, QSettings, QTextCodec, QSize, QMimeData, QUrl, QSysInfo, QEvent
from PyQt5 import QtPrintSupport
@Axel-Erfurt
Axel-Erfurt / YouTubeDL.py
Last active Mar 13, 2020
GUI for youtube-dl (PyQt5)
View YouTubeDL.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
from PyQt5.QtCore import (QFile, QPoint, QRect, QSize, QStandardPaths,
Qt, QProcess, QSettings)
from PyQt5.QtGui import QIcon, QFont, QClipboard
from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog, QMainWindow, QLineEdit, QProgressBar,
QMessageBox, QHBoxLayout, QVBoxLayout, QWidget, QLabel, QMessageBox, QToolButton, QComboBox)
quote = str(chr(34))
@Axel-Erfurt
Axel-Erfurt / DBViewerLinux.py
Last active Sep 19, 2018
DBViewer, Export, Print
View DBViewerLinux.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
### Axel Schneider 2017###
from PyQt5 import QtSql, QtPrintSupport
from PyQt5.QtGui import QTextDocument, QIcon, QTextCursor, QTextTableFormat
from PyQt5.QtCore import QFileInfo, Qt, QSettings, QSize, QFile, QTextStream, QItemSelectionModel, QVariant
from PyQt5.QtWidgets import (QMainWindow, QTableView, QDialog, QGridLayout, QPushButton, QAbstractItemView,
QLineEdit, QWidget, QFileDialog, QComboBox, QMessageBox, QApplication)
import sqlite3
import csv
@Axel-Erfurt
Axel-Erfurt / SpeedTest.py
Created Apr 27, 2018
GUI for speedtest-cli (PyQt5)
View SpeedTest.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
import csv, codecs, time, os
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
from PyQt5.QtCore import (QFile, QFileInfo, QPoint, QRect, QSettings, QSize,
Qt, QTextStream, QProcess, QDir)
from PyQt5.QtGui import QIcon, QFont
from PyQt5.QtWidgets import (QAction, QApplication, QMainWindow,
@Axel-Erfurt
Axel-Erfurt / SQLiteViewer.py
Last active Mar 5, 2020
SQLiteViewer (PyQt5)
View SQLiteViewer.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
### Axel Schneider 2017###
from PyQt5 import QtSql, QtPrintSupport
from PyQt5.QtGui import QTextDocument, QIcon, QTextCursor, QTextTableFormat
from PyQt5.QtCore import QFileInfo, Qt, QSettings, QSize, QFile, QTextStream, QItemSelectionModel, QVariant
from PyQt5.QtWidgets import (QMainWindow, QTableView, QDialog, QGridLayout, QPushButton, QAbstractItemView,
QLineEdit, QWidget, QFileDialog, QComboBox, QMessageBox, QApplication)
import sqlite3
import csv
@Axel-Erfurt
Axel-Erfurt / Qt5_CSV.py
Last active Jul 21, 2021
CSV Reader / Writer (Python Qt5)
View Qt5_CSV.py
#!/usr/bin/python3
#-*- coding:utf-8 -*-
import csv, codecs
import os
import pandas as pd
from PyQt5 import QtPrintSupport
from PyQt5.QtGui import (QImage, QPainter, QIcon, QKeySequence, QTextCursor, QPalette,
QCursor, QDropEvent, QTextDocument, QTextTableFormat, QColor, QBrush)
from PyQt5.QtCore import (QFile, QSettings, Qt, QFileInfo, QItemSelectionModel, QDir,
QMetaObject, QAbstractTableModel, QModelIndex, QVariant)
View AudioConverter.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
########################################################
from PyQt5.QtCore import (QDir, Qt)
from PyQt5.QtWidgets import (QApplication, QGridLayout,
QTableWidget, QTableWidgetItem, QWidget, QPushButton, QFileDialog,
QMainWindow, QMessageBox, QAbstractItemView, QComboBox, QLabel)
from PyQt5.QtGui import QIcon
import os, subprocess
import pydub