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 -*- | |
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 |
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/env python3 | |
# -*- coding: utf-8 -*- | |
import gi | |
gi.require_versions({'Gtk': '3.0', 'AyatanaAppIndicator3': '0.1', 'GLib': '2.0'}) | |
from gi.repository import Gtk, GLib | |
from gi.repository import AyatanaAppIndicator3 as appindicator | |
from subprocess import check_output | |
buffer_sizes = [32, 64, 128, 256, 512, 1024, 2048, 4096] |
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 -*- | |
import requests | |
import json | |
url = "https://raw.githubusercontent.com/mediathekview/MServer/master/dist/live-streams.json" | |
data = requests.get(url).text | |
js = json.loads(data) |
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 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 |
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 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 |
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
#EXTM3U | |
#EXTINF:1,Blues | |
http://streaming.exclusive.radio/er/blues/icecast.audio | |
#EXTINF:2,Calm | |
http://streaming.exclusive.radio/er/calm/icecast.audio | |
#EXTINF:3,Chart | |
http://streaming.exclusive.radio/er/chart/icecast.audio | |
#EXTINF:4,Classical | |
http://streaming.exclusive.radio/er/classical/icecast.audio | |
#EXTINF:5,Country |
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 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)) |
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 -*- | |
import requests | |
import time | |
import locale | |
from datetime import date | |
import webbrowser | |
header = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
<html><head><meta name="qrichtext" content="1" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css"> |
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 PyQt5.QtWidgets import (QMainWindow, QApplication, | |
QToolButton, QTableWidget, | |
QTableWidgetItem, QFileDialog, QStyle) | |
from PyQt5.QtCore import Qt, QSize |
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 gi | |
gi.require_versions({'Gtk': '3.0','XApp': '1.0'}) | |
from gi.repository import Gtk, XApp | |
import warnings | |
warnings.filterwarnings("ignore") | |
class MyStatusIconApp: |