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 | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk, Gdk | |
import sys | |
class MyWindow(Gtk.ApplicationWindow): | |
def __init__(self, app): | |
Gtk.Window.__init__(self, title="Gtk get screen workarea", application=app) |
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
# 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): |
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 | |
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() |
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/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 |