Source

pyqtwidgets / tests / test_fader.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4.QtCore import *
from PyQt4.QtGui import *

from qtwidgets.fader import Fader



def test_fader():
    import sys
    app = QApplication(sys.argv)
    b = QPushButton(None)
    b.resize(320, 240)
    b.setText("Hello, world")
    b.connect(b, SIGNAL("clicked()"), app.quit)
    b.show()
    f = Fader(b)
    f.start()
    app.exec_()




if __name__ == "__main__":
    test_fader()