8 changed files with 435 additions and 2 deletions
@ -0,0 +1,2 @@ |
|||||||
|
from .open_wallet_dialog import ( |
||||||
|
Ui_OpenWalletDialog) |
||||||
@ -0,0 +1,136 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
|
||||||
|
################################################################################ |
||||||
|
## Form generated from reading UI file 'open_wallet_dialog.ui' |
||||||
|
## |
||||||
|
## Created by: Qt User Interface Compiler version 5.14.2 |
||||||
|
## |
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file! |
||||||
|
################################################################################ |
||||||
|
|
||||||
|
from PySide2.QtCore import (QCoreApplication, QDate, QDateTime, QMetaObject, |
||||||
|
QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) |
||||||
|
from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, |
||||||
|
QFontDatabase, QIcon, QKeySequence, QLinearGradient, QPalette, QPainter, |
||||||
|
QPixmap, QRadialGradient) |
||||||
|
from PySide2.QtWidgets import * |
||||||
|
|
||||||
|
|
||||||
|
class Ui_OpenWalletDialog(object): |
||||||
|
def setupUi(self, OpenWalletDialog): |
||||||
|
if not OpenWalletDialog.objectName(): |
||||||
|
OpenWalletDialog.setObjectName(u"OpenWalletDialog") |
||||||
|
OpenWalletDialog.resize(590, 301) |
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Maximum) |
||||||
|
sizePolicy.setHorizontalStretch(0) |
||||||
|
sizePolicy.setVerticalStretch(0) |
||||||
|
sizePolicy.setHeightForWidth(OpenWalletDialog.sizePolicy().hasHeightForWidth()) |
||||||
|
OpenWalletDialog.setSizePolicy(sizePolicy) |
||||||
|
OpenWalletDialog.setFocusPolicy(Qt.TabFocus) |
||||||
|
OpenWalletDialog.setModal(True) |
||||||
|
self.verticalLayout = QVBoxLayout(OpenWalletDialog) |
||||||
|
self.verticalLayout.setSpacing(10) |
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout") |
||||||
|
self.verticalLayout.setContentsMargins(20, 20, 20, 20) |
||||||
|
self.horizontalLayout = QHBoxLayout() |
||||||
|
self.horizontalLayout.setSpacing(10) |
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout") |
||||||
|
self.label = QLabel(OpenWalletDialog) |
||||||
|
self.label.setObjectName(u"label") |
||||||
|
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) |
||||||
|
sizePolicy1.setHorizontalStretch(0) |
||||||
|
sizePolicy1.setVerticalStretch(0) |
||||||
|
sizePolicy1.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) |
||||||
|
self.label.setSizePolicy(sizePolicy1) |
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.label) |
||||||
|
|
||||||
|
self.walletFileEdit = QLineEdit(OpenWalletDialog) |
||||||
|
self.walletFileEdit.setObjectName(u"walletFileEdit") |
||||||
|
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) |
||||||
|
sizePolicy2.setHorizontalStretch(0) |
||||||
|
sizePolicy2.setVerticalStretch(0) |
||||||
|
sizePolicy2.setHeightForWidth(self.walletFileEdit.sizePolicy().hasHeightForWidth()) |
||||||
|
self.walletFileEdit.setSizePolicy(sizePolicy2) |
||||||
|
self.walletFileEdit.setMinimumSize(QSize(400, 0)) |
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.walletFileEdit) |
||||||
|
|
||||||
|
self.chooseWalletButton = QPushButton(OpenWalletDialog) |
||||||
|
self.chooseWalletButton.setObjectName(u"chooseWalletButton") |
||||||
|
sizePolicy1.setHeightForWidth(self.chooseWalletButton.sizePolicy().hasHeightForWidth()) |
||||||
|
self.chooseWalletButton.setSizePolicy(sizePolicy1) |
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.chooseWalletButton) |
||||||
|
|
||||||
|
self.horizontalLayout.setStretch(1, 1) |
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout) |
||||||
|
|
||||||
|
self.horizontalLayout_2 = QHBoxLayout() |
||||||
|
self.horizontalLayout_2.setSpacing(10) |
||||||
|
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") |
||||||
|
self.label_2 = QLabel(OpenWalletDialog) |
||||||
|
self.label_2.setObjectName(u"label_2") |
||||||
|
sizePolicy1.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) |
||||||
|
self.label_2.setSizePolicy(sizePolicy1) |
||||||
|
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_2) |
||||||
|
|
||||||
|
self.passphraseEdit = QLineEdit(OpenWalletDialog) |
||||||
|
self.passphraseEdit.setObjectName(u"passphraseEdit") |
||||||
|
self.passphraseEdit.setMinimumSize(QSize(200, 0)) |
||||||
|
self.passphraseEdit.setEchoMode(QLineEdit.Password) |
||||||
|
|
||||||
|
self.horizontalLayout_2.addWidget(self.passphraseEdit) |
||||||
|
|
||||||
|
self.horizontalSpacer = QSpacerItem(90, 20, QSizePolicy.Fixed, QSizePolicy.Minimum) |
||||||
|
|
||||||
|
self.horizontalLayout_2.addItem(self.horizontalSpacer) |
||||||
|
|
||||||
|
self.horizontalLayout_2.setStretch(1, 1) |
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2) |
||||||
|
|
||||||
|
self.verticalSpacer = QSpacerItem(20, 150, QSizePolicy.Minimum, QSizePolicy.Minimum) |
||||||
|
|
||||||
|
self.verticalLayout.addItem(self.verticalSpacer) |
||||||
|
|
||||||
|
self.horizontalLayout_3 = QHBoxLayout() |
||||||
|
self.horizontalLayout_3.setSpacing(10) |
||||||
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") |
||||||
|
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
||||||
|
|
||||||
|
self.horizontalLayout_3.addItem(self.horizontalSpacer_2) |
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(OpenWalletDialog) |
||||||
|
self.buttonBox.setObjectName(u"buttonBox") |
||||||
|
self.buttonBox.setOrientation(Qt.Horizontal) |
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok) |
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.buttonBox) |
||||||
|
|
||||||
|
self.horizontalLayout_3.setStretch(0, 1) |
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_3) |
||||||
|
|
||||||
|
self.verticalLayout.setStretch(2, 1) |
||||||
|
QWidget.setTabOrder(self.passphraseEdit, self.chooseWalletButton) |
||||||
|
QWidget.setTabOrder(self.chooseWalletButton, self.walletFileEdit) |
||||||
|
|
||||||
|
self.retranslateUi(OpenWalletDialog) |
||||||
|
self.buttonBox.accepted.connect(OpenWalletDialog.accept) |
||||||
|
self.buttonBox.rejected.connect(OpenWalletDialog.reject) |
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(OpenWalletDialog) |
||||||
|
# setupUi |
||||||
|
|
||||||
|
def retranslateUi(self, OpenWalletDialog): |
||||||
|
OpenWalletDialog.setWindowTitle(QCoreApplication.translate("OpenWalletDialog", u"JoinMarket - Open Wallet", None)) |
||||||
|
self.label.setText(QCoreApplication.translate("OpenWalletDialog", u"Wallet:", None)) |
||||||
|
self.walletFileEdit.setText(QCoreApplication.translate("OpenWalletDialog", u"wallet.jmdat", None)) |
||||||
|
self.walletFileEdit.setPlaceholderText("") |
||||||
|
self.chooseWalletButton.setText(QCoreApplication.translate("OpenWalletDialog", u"Choose...", None)) |
||||||
|
self.label_2.setText(QCoreApplication.translate("OpenWalletDialog", u"Passphrase:", None)) |
||||||
|
# retranslateUi |
||||||
|
|
||||||
@ -0,0 +1,236 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<ui version="4.0"> |
||||||
|
<class>OpenWalletDialog</class> |
||||||
|
<widget class="QDialog" name="OpenWalletDialog"> |
||||||
|
<property name="geometry"> |
||||||
|
<rect> |
||||||
|
<x>0</x> |
||||||
|
<y>0</y> |
||||||
|
<width>590</width> |
||||||
|
<height>301</height> |
||||||
|
</rect> |
||||||
|
</property> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Maximum" vsizetype="Maximum"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="focusPolicy"> |
||||||
|
<enum>Qt::TabFocus</enum> |
||||||
|
</property> |
||||||
|
<property name="windowTitle"> |
||||||
|
<string>JoinMarket - Open Wallet</string> |
||||||
|
</property> |
||||||
|
<property name="modal"> |
||||||
|
<bool>true</bool> |
||||||
|
</property> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,1,0"> |
||||||
|
<property name="spacing"> |
||||||
|
<number>10</number> |
||||||
|
</property> |
||||||
|
<property name="leftMargin"> |
||||||
|
<number>20</number> |
||||||
|
</property> |
||||||
|
<property name="topMargin"> |
||||||
|
<number>20</number> |
||||||
|
</property> |
||||||
|
<property name="rightMargin"> |
||||||
|
<number>20</number> |
||||||
|
</property> |
||||||
|
<property name="bottomMargin"> |
||||||
|
<number>20</number> |
||||||
|
</property> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0"> |
||||||
|
<property name="spacing"> |
||||||
|
<number>10</number> |
||||||
|
</property> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Wallet:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLineEdit" name="walletFileEdit"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="minimumSize"> |
||||||
|
<size> |
||||||
|
<width>400</width> |
||||||
|
<height>0</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>wallet.jmdat</string> |
||||||
|
</property> |
||||||
|
<property name="placeholderText"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="chooseWalletButton"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Choose...</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1,0"> |
||||||
|
<property name="spacing"> |
||||||
|
<number>10</number> |
||||||
|
</property> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label_2"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Passphrase:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLineEdit" name="passphraseEdit"> |
||||||
|
<property name="minimumSize"> |
||||||
|
<size> |
||||||
|
<width>200</width> |
||||||
|
<height>0</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
<property name="echoMode"> |
||||||
|
<enum>QLineEdit::Password</enum> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeType"> |
||||||
|
<enum>QSizePolicy::Fixed</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>90</width> |
||||||
|
<height>20</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="verticalSpacer"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Vertical</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeType"> |
||||||
|
<enum>QSizePolicy::Minimum</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>20</width> |
||||||
|
<height>150</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="1,0"> |
||||||
|
<property name="spacing"> |
||||||
|
<number>10</number> |
||||||
|
</property> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer_2"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>40</width> |
||||||
|
<height>20</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QDialogButtonBox" name="buttonBox"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="standardButtons"> |
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
<tabstops> |
||||||
|
<tabstop>passphraseEdit</tabstop> |
||||||
|
<tabstop>chooseWalletButton</tabstop> |
||||||
|
<tabstop>walletFileEdit</tabstop> |
||||||
|
</tabstops> |
||||||
|
<resources/> |
||||||
|
<connections> |
||||||
|
<connection> |
||||||
|
<sender>buttonBox</sender> |
||||||
|
<signal>accepted()</signal> |
||||||
|
<receiver>OpenWalletDialog</receiver> |
||||||
|
<slot>accept()</slot> |
||||||
|
<hints> |
||||||
|
<hint type="sourcelabel"> |
||||||
|
<x>248</x> |
||||||
|
<y>254</y> |
||||||
|
</hint> |
||||||
|
<hint type="destinationlabel"> |
||||||
|
<x>157</x> |
||||||
|
<y>274</y> |
||||||
|
</hint> |
||||||
|
</hints> |
||||||
|
</connection> |
||||||
|
<connection> |
||||||
|
<sender>buttonBox</sender> |
||||||
|
<signal>rejected()</signal> |
||||||
|
<receiver>OpenWalletDialog</receiver> |
||||||
|
<slot>reject()</slot> |
||||||
|
<hints> |
||||||
|
<hint type="sourcelabel"> |
||||||
|
<x>316</x> |
||||||
|
<y>260</y> |
||||||
|
</hint> |
||||||
|
<hint type="destinationlabel"> |
||||||
|
<x>286</x> |
||||||
|
<y>274</y> |
||||||
|
</hint> |
||||||
|
</hints> |
||||||
|
</connection> |
||||||
|
</connections> |
||||||
|
</ui> |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
from setuptools import setup |
||||||
|
import os |
||||||
|
|
||||||
|
setup(name='joinmarketui', |
||||||
|
version='0.9.2dev', |
||||||
|
description='Joinmarket client library for Bitcoin coinjoins', |
||||||
|
url='http://github.com/Joinmarket-Org/joinmarket-clientserver/jmfg', |
||||||
|
author='', |
||||||
|
author_email='', |
||||||
|
license='GPL', |
||||||
|
packages=['jmqtui'], |
||||||
|
install_requires=['PyQt5!=5.15.0,!=5.15.1,!=5.15.2,!=6.0'], |
||||||
|
python_requires='>=3.6', |
||||||
|
zip_safe=False) |
||||||
|
|
||||||
|
os.system('pyside2-uic jmqtui/open_wallet_dialog.ui -o jmqtui/open_wallet_dialog.py') |
||||||
Loading…
Reference in new issue