Skip to content

Instantly share code, notes, and snippets.

View eyllanesc's full-sized avatar
:octocat:
I may be slow to respond.

Edwin Yllanes eyllanesc

:octocat:
I may be slow to respond.
View GitHub Profile
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import cv2
class ShowVid(QObject):
signal = pyqtSignal(QImage)
def __init__(self):
#include "frame.h"
#include <QPainter>
frame::frame(QWidget *parent) : QFrame(parent)
{
}
void frame::paintEvent(QPaintEvent *p)
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class TableWidget(QTableWidget):
def __init__(self, *args, **kwargs):
QTableWidget.__init__(self, *args, **kwargs)
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
def process(text):
# Emulate processing
return [c for c in text]
class Widget(QWidget):
#-------------------------------------------------
#
# Project created by QtCreator 2017-09-04T08:02:35
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
import random
import sys
import pyqtgraph as pg
from PyQt4 import QtGui, QtCore
class PlotWidget(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
#-------------------------------------------------
#
# Project created by QtCreator 2017-09-01T21:56:52
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
from PyQt5 import QtCore, QtWidgets
class Ui_form(object):
def setupUi(self, form):
form.setObjectName("form")
form.resize(1000, 650)
self.groupBox = QtWidgets.QGroupBox(form)
self.groupBox.setGeometry(QtCore.QRect(530, 350, 451, 281))
import sys
from shutil import copyfile
import os
#import vispy.mpl_plot as plt
import subprocess as sp
import vispy.app
vispy.app.use_app(backend_name="PyQt5", call_reuse=True)
import os
import platform
import sys
from PyQt4 import QtCore, QtGui
class Interface(QtGui.QMainWindow):
def __init__(self):
super(Interface, self).__init__()
self.setWindowTitle('Compagnons Batisseur')
self.resize(1440, 900)