This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
from PyQt5.QtCore import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtWidgets import * | |
class Delegado(QAbstractItemDelegate): | |
def __init__(self): | |
super(Delegado, self).__init__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5 import QtCore, QtGui, QtWidgets | |
from PyQt5.QtCore import QDate, QDateTime, QTime | |
from datetime import datetime, timedelta | |
import random | |
import matplotlib | |
import sys | |
import os | |
from numpy import arange, sin, pi | |
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import PyQt5 | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import * | |
# This is our window from QtCreator | |
import mainwindow_auto | |
class DataCaptureThread(QThread): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt4 import QtGui, QtCore, QtSql | |
class SeatSel(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(SeatSel, self).__init__(parent) | |
self.a = {} | |
self.l = {} | |
self.l1 = QtGui.QLabel("\t\t Screen", self) | |
self.l1.setStyleSheet("color : black") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from PyQt4 import QtCore, QtGui | |
import sys | |
class Kaskade(QtGui.QWidget): | |
def __init__(self,sp,sp_min,sp_max, parent = None): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path | |
class DownloadItem: | |
def __init__(self, path): | |
self.dirname = os.path.dirname(path) | |
self.filename = os.path.basename(path) | |
self.fullpath = path | |
self.type = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------- | |
# | |
# Project created by QtCreator 2017-11-05T18:00:50 | |
# | |
#------------------------------------------------- | |
QT += core gui | |
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5 import QtCore, QtGui, QtWidgets | |
class TimerLCDNumber(QtWidgets.QLCDNumber): | |
def __init__(self, *args, **kwargs): | |
QtWidgets.QLCDNumber.__init__(self, *args, **kwargs) | |
self.timer = QtCore.QTimer(self) | |
self.timer.setInterval(1000) | |
self.timer.timeout.connect(self.onTimeout) | |
self.finished = self.value() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtCore import * | |
from PyQt5.QtGui import QDrag | |
from PyQt5.QtWidgets import * | |
class TreeWidget(QTreeWidget): | |
customMimeType = "application/x-customTreeWidgetdata" | |
def mimeTypes(self): | |
mimetypes = QTreeWidget.mimeTypes(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import html | |
from PyQt5.QtCore import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtWidgets import * | |
def format(color, style=''): | |
_color = QColor() | |
_color.setNamedColor(color) |