Skip to content

Instantly share code, notes, and snippets.

@CorentinJ
CorentinJ / qt_ui_template.py
Created March 9, 2019 13:31
A simple UI demo with Qt4
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from PyQt4.QtGui import *
import numpy as np
import sys
class TemplateUI(QDialog):
def __init__(self):
# Create the ui