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
@eyllanesc
eyllanesc / TestQML.pro
Last active August 19, 2017 02:55
Test
TEMPLATE = app
QT += qml quick
CONFIG += c++11
SOURCES += main.cpp \
boot.cpp
RESOURCES += qml.qrc
@eyllanesc
eyllanesc / Button.qml
Last active August 20, 2017 05:46
TestImage
import QtQuick 2.0
Rectangle {
color: "red"
signal signalCplusplus();
Text{
text: Vendor
}
MouseArea {
@eyllanesc
eyllanesc / inventory.py
Last active August 21, 2017 07:15
inventory
from PyQt4 import QtSql
from PyQt4 import QtCore, QtGui
import sqlite3
import subprocess
import sys
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
@eyllanesc
eyllanesc / main.py
Created August 21, 2017 21:29
Embedding QDialog in QWidget
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
class MainWindow(QWidget):
def __init__(self):
super(MainWindow, self).__init__()
self.setWindowTitle("My own MainWindow")
self.fileDialog = QFileDialog(self)
QT += core
QT -= gui
QT += network
CONFIG += c++11
TARGET = DropboxDownload
CONFIG += console
CONFIG -= app_bundle
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
@eyllanesc
eyllanesc / QSortFilterProxyModelExample.pro
Created August 26, 2017 20:54
QSortFilterProxyModel Example
#-------------------------------------------------
#
# Project created by QtCreator 2017-08-26T15:35:47
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@eyllanesc
eyllanesc / main.py
Created August 28, 2017 13:37
Example
from PyQt5 import QtWidgets, QtGui , QtCore
class Ui_contacts(object):
def setupUi(self, contacts):
contacts.setObjectName("contacts")
contacts.resize(368, 579)
self.contacts_frame = QtWidgets.QFrame(contacts)
self.contacts_frame.setGeometry(QtCore.QRect(10, 10, 351, 561))
self.contacts_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.contacts_frame.setFrameShadow(QtWidgets.QFrame.Raised)
import os
import platform
import sys
from PyQt4 import QtCore, QtGui
class Interface(QtGui.QMainWindow):
def __init__(self):
super(Interface, self).__init__()
self.setWindowTitle('Compagnons Batisseur')
self.resize(1440, 900)
import sys
from shutil import copyfile
import os
#import vispy.mpl_plot as plt
import subprocess as sp
import vispy.app
vispy.app.use_app(backend_name="PyQt5", call_reuse=True)