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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
@eyllanesc
eyllanesc / QSortFilterProxyModelExample.pro
Created August 26, 2017 20:54
QSortFilterProxyModel Example
#-------------------------------------------------
#
# Project created by QtCreator 2017-08-26T15:35:47
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#-------------------------------------------------
#
# Project created by QtCreator 2017-08-27T16:40:21
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@eyllanesc
eyllanesc / main.py
Created August 28, 2017 13:37
Example
from PyQt5 import QtWidgets, QtGui , QtCore
class Ui_contacts(object):
def setupUi(self, contacts):
contacts.setObjectName("contacts")
contacts.resize(368, 579)
self.contacts_frame = QtWidgets.QFrame(contacts)
self.contacts_frame.setGeometry(QtCore.QRect(10, 10, 351, 561))
self.contacts_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.contacts_frame.setFrameShadow(QtWidgets.QFrame.Raised)
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)
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)
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))
#-------------------------------------------------
#
# Project created by QtCreator 2017-09-01T21:56:52
#
#-------------------------------------------------
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-04T08:02:35
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets