This file contains 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 BackgroundWidget import BackgroundWidget | |
class AbstractMeter(BackgroundWidget): | |
def __init__(self, parent=None): | |
BackgroundWidget.__init__(self, parent=parent) | |
self.mValue = 0.0 |
This file contains 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 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): |
This file contains 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, QtQuick | |
class RadialBar(QtQuick.QQuickPaintedItem): | |
class DialType(): | |
FullDial = 0 | |
MinToMax = 1 | |
NoDial = 2 |
This file contains 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.QtWidgets import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtCore import * | |
class Manager: | |
def __init__(self): | |
self.center() | |
def center(self): | |
self.setGeometry(QStyle.alignedRect( |
This file contains 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 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): |
This file contains 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 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.
This file contains 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 QtQuick 2.9 | |
Rectangle{ | |
color: "blue" | |
anchors.fill: parent | |
radius: width/2 | |
Text { | |
text: Qt.formatTime(new Date(), "hh:mm:ss") | |
anchors.centerIn: parent | |
} | |
} |
This file contains 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
<?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> |
This file contains 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 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) |