Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / PyQt5VideoPlayer
Last active Jul 28, 2021
PyQt5 VideoPlayer
View PyQt5VideoPlayer
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QPalette, QKeySequence, QIcon
from PyQt5.QtCore import QDir, Qt, QUrl, QSize, QPoint, QTime, QMimeData, QProcess, QEvent
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer, QMediaMetaData
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import (QApplication, QFileDialog, QHBoxLayout, QLineEdit,
QPushButton, QSizePolicy, QSlider, QMessageBox, QStyle, QVBoxLayout,
QWidget, QShortcut, QMenu)
View PyQt5_Downloader.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import (QWidget, QPushButton, QLineEdit, QProgressBar, QApplication,
QVBoxLayout, QHBoxLayout, QLabel, QFileDialog)
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import QThread, pyqtSignal, QSettings, QStandardPaths
import queue #If this template is not loaded, pyinstaller may not be able to run the requests template after packaging
import requests
View createApp_cxfreeze.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
from PyQt5.QtCore import (QFile, pyqtSignal, Qt, QMimeData, QProcess, QObject, QEvent)
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QApplication, QFileDialog, QMainWindow, QCheckBox,
QMessageBox, QHBoxLayout, QVBoxLayout, QWidget, QLabel, QMessageBox, QToolButton, QLineEdit)
from distutils.spawn import find_executable
import encodings
import sys
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
@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)
@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 / 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 / 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 / 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 / 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