Skip to content

Instantly share code, notes, and snippets.

View bootchk's full-sized avatar

Lloyd Konneker bootchk

View GitHub Profile
@bootchk
bootchk / windowSettable.py
Last active May 1, 2022 16:26
Python, PySide, Qt implementation of saving/restoring window attributes (size, position, etc.) as settings (preferences) for an application. Mixin: make your custom subclass of QMainWindow multiply inherit this, and call these methods from appropriate places.
'''
Copyright 2013 Lloyd Konneker
License: LGPL
'''
from PySide.QtCore import QSettings
class WindowSettable(object):
'''
@bootchk
bootchk / fileLoader.py
Created February 15, 2014 21:40
A class for asynchronous url loading using Qt, PyQt
'''
Copyright 2014 Lloyd Konneker
Release under the GPLv3
'''
from PyQt5.QtCore import pyqtSignal as Signal
from PyQt5.QtCore import QObject, QByteArray, QUrl
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkRequest