Skip to content

Instantly share code, notes, and snippets.

View qtcharts-nesteddonuts-example.py
# from: https://doc.qt.io/qt-5/qtcharts-nesteddonuts-example.html
import functools
import random
from PyQt5.QtChart import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
class Widget(QWidget):
@quasoft
quasoft / gst_playbin_sink_example.py
Created Oct 8, 2016
Using GStreamer with playbin and custom sink as radio player
View gst_playbin_sink_example.py
#!/usr/bin/env python3
import gi
import threading
gi.require_version('Gst', '1.0')
gi.require_version('GstBase', '1.0')
gi.require_version('Gtk', '3.0')
from gi.repository import GObject, Gst
# Initialize threads
GObject.threads_init()
@koMah
koMah / PyGObject.TreeView-Multi-Column-Filtering.py
Last active Feb 10, 2021
A PyGtk example for filtering multiple columns in a TreeView
View PyGObject.TreeView-Multi-Column-Filtering.py
#!/usr/bin/python
from gi.repository import Gtk
import random
DUMMY_WORDS = '''Omnisciently sepulture innervating reducate louden fleming
psoatic opinionatedly upington unmistrusted psychognosis
jackfish tutankhamen piled Hyperpotassemia schopenhauerism
venomness grendel bleakly unbungling dolius proempiricist
ableptically siniju woolley giulietta semisentimentalized
tolerably Moultrie prelawful prague mangler gainfulness