Commit 69298912 authored by Kevin Whitaker's avatar Kevin Whitaker

First project structure and start of GUI.

parents
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
from PySide2 import QtCore
class OPTListModel(QtCore.QAbstractListModel):
pass
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtWidgets import QApplication
qapp = QApplication()
app = QQmlApplicationEngine("qml/main.qml")
qapp.exec_()
import QtQuick 2.2
import QtQuick.Controls 2.3
ApplicationWindow {
id: root
visible: true
width: 360
height: 640
title: qsTr("Two Factor Keychain")
StackView {
id: stack
initialItem: "otplist.qml"
anchors.fill: parent
}
}
\ No newline at end of file
import QtQuick 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.3
Item {
ToolBar {
id: otpTimeout
anchors.right: parent.right
anchors.left: parent.left
ColumnLayout {
anchors.fill: parent
RowLayout {
id: actionTools
Layout.alignment: Qt.AlignRight
ToolButton {
id: addItem
icon.name: "list-add"
ToolTip.text: qsTr("Add Item")
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.visible: down
}
ToolButton {
id: addQRItem
icon.name: "insert-image"
ToolTip.text: qsTr("Add Item by QR")
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.visible: down
}
}
ProgressBar {
id: timeout
Layout.fillWidth: true
visible: true
}
}
}
ListView {
id:otpList
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment