#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication
from pyviz.Widgets import *
from pyviz.Data import *

import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)

app = QApplication(sys.argv)

d1 = ImageDisplay()
d1.setTo('img.ppm')
d1.resize(250, 150)
d1.setWindowTitle('Display Image Example')
d1.show()

d2 = MaskDisplay()
d2.setTo('mask.pgm')
d2.resize(250, 150)
d2.setWindowTitle('Display Mask Example')
d2.show()

d3 = FloatDisplay()
d3.setTo('float.float3')
d3.resize(250, 150)
d3.setWindowTitle('Display Float Example')
d3.show()

d4 = FlowDisplay()
d4.setTo('flow.flo')
d4.resize(250, 150)
d4.setScale(10.0)
d4.setWindowTitle('Display Flow Example')
d4.show()

d5 = FlowDisplay()
d5.setTo('flow.flo')
d5.resize(250, 150)
d5.setScale(10.0)
d5.setVizType('sintel')
d5.setWindowTitle('Display Flow Example')
d5.show()

sys.exit(app.exec_())




