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
#!/bin/sh | |
mount -t devtmpfs none /dev | |
mount -t proc proc /proc | |
mount -t sysfs sysfs /sys | |
until [ -b "/dev/mmcblk0p2" ]; do | |
sleep 5 | |
done |
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 graphene | |
class GeoInput(graphene.InputObjectType): | |
lat = graphene.Float(required=True) | |
lng = graphene.Float(required=True) | |
@property | |
def latlng(self): | |
return "({},{})".format(self.lat, self.lng) |
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 json | |
import sys | |
import pygame | |
import requests | |
pygame.init() | |
window_w = 800 |
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 os | |
import sys | |
import threading | |
from PySide2 import QtCore, QtGui, QtQml | |
QML = b""" | |
import QtQuick 2.7 | |
import QtQuick.Controls 2.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 | |
from PyQt5.QtCore import QObject, pyqtProperty, pyqtSignal | |
from PyQt5.QtWidgets import QApplication | |
from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType | |
class Interface(QObject): | |
def __init__(self, parent=None): | |
super().__init__(parent=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
import QtQuick 2.0 | |
import QtQuick.Controls 2.0 | |
Popup { | |
id: popup | |
modal: false | |
focus: false | |
property alias text: txt.text | |
closePolicy: Popup.NoAutoClose // To close click the notification or wait 5 seconds |
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.7 | |
import QtQuick.Controls 1.4 | |
import QtQuick.Layouts 1.3 as Layouts | |
Item { | |
id: base | |
property var categories: ['one', 'two', 'three'] | |
width: 800 | |
height: 600 |
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
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 1) already taken | |
QGridLayoutEngine::addItem: Cell (0, 1) already taken | |
QGridLayoutEngine::addItem: Cell (0, 1) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken | |
QGridLayoutEngine::addItem: Cell (0, 0) already taken |
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 import QtCore, QtQuick, QtQuickWidgets, QtWidgets | |
QML = """ | |
import QtQuick 2.1 | |
Rectangle { | |
id: rectangle | |
color: "red" |
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
$ qmltestrunner | |
********* Start testing of qmltestrunner ********* | |
Config: Using QtTest library 5.9.2, Qt 5.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) | |
PASS : qmltestrunner::initTestCase() | |
PASS : qmltestrunner::test_focus() | |
FAIL! : qmltestrunner::test_input() window not shown | |
Loc: [/home/siecje/Qt/5.9.2/gcc_64/qml/QtTest/TestCase.qml(1634)] | |
PASS : qmltestrunner::test_placeholder() | |
PASS : qmltestrunner::cleanupTestCase() | |
Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 4ms |
NewerOlder