Skip to content

Instantly share code, notes, and snippets.

Axel-Erfurt / OlympiaLiveStreams
Created Jul 31, 2021
Olympia 2021 Tokio Livestreams
View OlympiaLiveStreams
ARD Olympia 1
ARD Olympia 2
ARD Olympia 3
ARD Olympia 4
ARD Olympia 5
import gi
gi.require_versions({'Gtk': '3.0','XApp': '1.0'})
from gi.repository import Gtk, XApp
import warnings
class MyStatusIconApp:
Axel-Erfurt / QTableWidget_CSV
Created Jun 8, 2021
open / save CSV in QTableWidget
View QTableWidget_CSV
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QMainWindow, QApplication,
QToolButton, QTableWidget,
QTableWidgetItem, QFileDialog, QStyle)
from PyQt5.QtCore import Qt, QSize
# -*- coding: utf-8 -*-
import requests
import time
import locale
from datetime import date
import webbrowser
header = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "">
<html><head><meta name="qrichtext" content="1" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css">
Axel-Erfurt /
Last active Jul 21, 2021
CSV Viewer Gtk3 Python with Filter
# -*- coding: utf-8 -*-
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
from gi.repository import Gtk, Gdk, GLib
Axel-Erfurt /
Last active Jan 24, 2021
show CSV with zenipy
import zenipy
myfile = "/path/to/file.csv"
csv = open(myfile, "r").read().splitlines()
header = "\n".join(csv[:1])
columns = header.split("\t")
t = ""
View QuickPlayer.qml
import QtQuick 2.2
import QtQuick.Window 2.2
import QtMultimedia 5.0
import QtQuick.Controls 1.1
import QtQuick.Dialogs 1.0
ApplicationWindow {
id: window
flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
visible: true
Axel-Erfurt /
Created Dec 10, 2020
PyQt5 Notification Popup
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QWidget, QApplication, QVBoxLayout, QPushButton,
QDesktopWidget, QLabel, QGridLayout, QMainWindow)
from PyQt5.QtCore import Qt, QTimer, QSize, QRect
from PyQt5.QtGui import QIcon
import sys
class Message(QWidget):
def __init__(self, title, message, parent=None):
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import QPoint, Qt
from PyQt5.QtWidgets import QApplication, QPlainTextEdit, QMainWindow, QLabel, QPushButton, QLineEdit
btn_size = 14
class MainWindow(QMainWindow):
Axel-Erfurt / celluloidTV.m3u
Last active Jun 7, 2021
Livestreams deutscher TV-Sender
View celluloidTV.m3u
#EXTINF:3,ARD Tagesschau