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 -*-
from BackgroundWidget import BackgroundWidget
class AbstractMeter(BackgroundWidget):
def __init__(self, parent=None):
BackgroundWidget.__init__(self, parent=parent)
self.mValue = 0.0
import sys
import os
from PySide2.QtCore import Qt, QObject, Signal, Slot, Property
from PySide2.QtWidgets import QApplication, QSystemTrayIcon, QStyle, QAction, QMenu, QMessageBox
from PySide2.QtQml import QQmlApplicationEngine
my_list = ['here','is','my','list']
class Manager(QObject):
from PyQt5 import QtCore, QtGui, QtQuick
class RadialBar(QtQuick.QQuickPaintedItem):
class DialType():
FullDial = 0
MinToMax = 1
NoDial = 2
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class Manager:
def __init__(self):
self.center()
def center(self):
self.setGeometry(QStyle.alignedRect(
@eyllanesc
eyllanesc / main.py
Created May 16, 2018 20:30
50314865
import sys
import os
from PySide2.QtCore import Qt, QObject, Signal, Slot, Property
from PySide2.QtWidgets import QApplication
from PySide2.QtQml import QQmlApplicationEngine
my_list = ['here','is','my','list']
class Manager(QObject):
@eyllanesc
eyllanesc / main.py
Created May 11, 2018 21:42
50295870
import sys
import cv2
from PyQt4 import QtGui, QtCore
class QtCapture(QtGui.QWidget):
def __init__(self, *args):
self.app = QtGui.QApplication(sys.argv)
super(QtGui.QWidget, self).__init__()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import QtQuick 2.9
Rectangle{
color: "blue"
anchors.fill: parent
radius: width/2
Text {
text: Qt.formatTime(new Date(), "hh:mm:ss")
anchors.centerIn: parent
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1364</width>
<height>681</height>
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class SubProxyModel(QAbstractProxyModel):
def __init__(self, x, y, nrows, ncols, parent=None):
QAbstractProxyModel.__init__(self, parent)