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 QtCore, QtGui | |
from PyQt4.QtGui import QPixmap | |
class GraphWidget(QtGui.QGraphicsView): | |
def __init__(self, mainwindow, *args, **kwargs): | |
super(GraphWidget, self).__init__(*args, **kwargs) | |
self.scene = QtGui.QGraphicsScene() | |
self.setScene(self.scene) |
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
(machine) [estan@pyret orexplore.machine]$ svn propget svn:ignore | |
.idea | |
.cache | |
.eggs | |
*.egg-info | |
*.pyc | |
__pycache__ | |
.coverage | |
(machine) [estan@pyret orexplore.machine]$ svn status |
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
# | |
# Add this to your ~/.bashrc: | |
# | |
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" |
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 sys import exit, argv | |
from PyQt5.QtWidgets import QWidget, QApplication, QFormLayout, QLabel, \ | |
QComboBox, QLineEdit | |
class Widget(QWidget): | |
def __init__(self, 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
from sys import argv, exit | |
from PyQt5.QtCore import pyqtSlot | |
from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton | |
class MainWindow(QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWindow, self).__init__(parent) |
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
#include <QApplication> | |
#include <QMainWindow> | |
#include <QPushButton> | |
#include <QWidget> | |
#include <QDebug> | |
class MainWindow : public QMainWindow { | |
Q_OBJECT | |
public: |
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
class Process(QProcess): | |
succeeded = pyqtSignal() | |
failed = pyqtSignal() | |
timedOut = pyqtSignal() | |
def __init__(self, timeout=1000, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self._timer = QTimer() |
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 logging import getLogger | |
from PyQt5.QtCore import QProcess, QTimer, pyqtSignal, pyqtProperty | |
log = getLogger(__name__) | |
class Process(QProcess): | |
"""Process class with built-in timeout |
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
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
Upstream-Name: astra | |
Source: https://sourceforge.net/projects/astra-toolbox/ | |
Files: * | |
Copyright: 2010-2015, iMinds-Vision Lab, University of Antwerp | |
2014-2015, CWI, Amsterdam | |
License: GPL-3+ | |
The ASTRA Toolbox is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
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 sys import exit, argv | |
from PyQt5.QtCore import pyqtSignal, pyqtProperty, Q_ENUMS, QObject | |
from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType | |
from PyQt5.QtGui import QGuiApplication | |
app = None | |