Added code dialog

This commit is contained in:
Marcel Kapfer 2020-05-03 17:21:56 +02:00
parent e64047aa66
commit 8bf1600f50
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 109 additions and 0 deletions

45
ui_code_dialog.py Normal file
View file

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_code_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.14.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_WikiCode(object):
def setupUi(self, WikiCode):
WikiCode.setObjectName("WikiCode")
WikiCode.resize(530, 643)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(WikiCode)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.e_code = QtWidgets.QPlainTextEdit(WikiCode)
font = QtGui.QFont()
font.setFamily("Monospace")
self.e_code.setFont(font)
self.e_code.setReadOnly(True)
self.e_code.setObjectName("e_code")
self.verticalLayout_2.addWidget(self.e_code)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.b_copy = QtWidgets.QPushButton(WikiCode)
self.b_copy.setObjectName("b_copy")
self.horizontalLayout.addWidget(self.b_copy)
self.b_close = QtWidgets.QPushButton(WikiCode)
self.b_close.setObjectName("b_close")
self.horizontalLayout.addWidget(self.b_close)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.retranslateUi(WikiCode)
QtCore.QMetaObject.connectSlotsByName(WikiCode)
def retranslateUi(self, WikiCode):
_translate = QtCore.QCoreApplication.translate
WikiCode.setWindowTitle(_translate("WikiCode", "WikiCode"))
self.b_copy.setText(_translate("WikiCode", "Kopieren"))
self.b_close.setText(_translate("WikiCode", "Schließen"))

64
ui_code_dialog.ui Normal file
View file

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>WikiCode</class>
<widget class="QDialog" name="WikiCode">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>530</width>
<height>643</height>
</rect>
</property>
<property name="windowTitle">
<string>WikiCode</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QPlainTextEdit" name="e_code">
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<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="QPushButton" name="b_copy">
<property name="text">
<string>Kopieren</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="b_close">
<property name="text">
<string>Schließen</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>