forked from Aeolitus/Sephrasto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CharakterEP.py
261 lines (251 loc) · 15.2 KB
/
CharakterEP.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CharakterEP.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(872, 460)
self.gridLayout = QtWidgets.QGridLayout(Form)
self.gridLayout.setObjectName("gridLayout")
self.spinFreiePercent = QtWidgets.QSpinBox(Form)
self.spinFreiePercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinFreiePercent.setReadOnly(True)
self.spinFreiePercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinFreiePercent.setMaximum(100)
self.spinFreiePercent.setObjectName("spinFreiePercent")
self.gridLayout.addWidget(self.spinFreiePercent, 6, 4, 1, 1)
self.spinFreieSpent = QtWidgets.QSpinBox(Form)
self.spinFreieSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinFreieSpent.setReadOnly(True)
self.spinFreieSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinFreieSpent.setMaximum(999999)
self.spinFreieSpent.setObjectName("spinFreieSpent")
self.gridLayout.addWidget(self.spinFreieSpent, 6, 3, 1, 1)
self.label_4 = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setItalic(True)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 6, 1, 1, 1)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 0, 3, 1, 1)
self.spinUeberFertigkeitenSpent = QtWidgets.QSpinBox(Form)
self.spinUeberFertigkeitenSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUeberFertigkeitenSpent.setReadOnly(True)
self.spinUeberFertigkeitenSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUeberFertigkeitenSpent.setMaximum(999999)
self.spinUeberFertigkeitenSpent.setObjectName("spinUeberFertigkeitenSpent")
self.gridLayout.addWidget(self.spinUeberFertigkeitenSpent, 9, 3, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem1, 11, 3, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem2, 3, 5, 1, 1)
self.spinTalentePercent = QtWidgets.QSpinBox(Form)
self.spinTalentePercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinTalentePercent.setReadOnly(True)
self.spinTalentePercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinTalentePercent.setMaximum(100)
self.spinTalentePercent.setObjectName("spinTalentePercent")
self.gridLayout.addWidget(self.spinTalentePercent, 5, 4, 1, 1)
self.labelUeber3 = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setItalic(True)
self.labelUeber3.setFont(font)
self.labelUeber3.setObjectName("labelUeber3")
self.gridLayout.addWidget(self.labelUeber3, 10, 1, 1, 1)
self.spinUeberTalenteSpent = QtWidgets.QSpinBox(Form)
self.spinUeberTalenteSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUeberTalenteSpent.setReadOnly(True)
self.spinUeberTalenteSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUeberTalenteSpent.setMaximum(999999)
self.spinUeberTalenteSpent.setObjectName("spinUeberTalenteSpent")
self.gridLayout.addWidget(self.spinUeberTalenteSpent, 10, 3, 1, 1)
self.spinVorteilePercent = QtWidgets.QSpinBox(Form)
self.spinVorteilePercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinVorteilePercent.setReadOnly(True)
self.spinVorteilePercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinVorteilePercent.setMaximum(100)
self.spinVorteilePercent.setObjectName("spinVorteilePercent")
self.gridLayout.addWidget(self.spinVorteilePercent, 2, 4, 1, 1)
self.spinVorteileSpent = QtWidgets.QSpinBox(Form)
self.spinVorteileSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinVorteileSpent.setReadOnly(True)
self.spinVorteileSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinVorteileSpent.setMaximum(99999999)
self.spinVorteileSpent.setObjectName("spinVorteileSpent")
self.gridLayout.addWidget(self.spinVorteileSpent, 2, 3, 1, 1)
self.spinAttributePercent = QtWidgets.QSpinBox(Form)
self.spinAttributePercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinAttributePercent.setReadOnly(True)
self.spinAttributePercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinAttributePercent.setMaximum(100)
self.spinAttributePercent.setObjectName("spinAttributePercent")
self.gridLayout.addWidget(self.spinAttributePercent, 1, 4, 1, 1)
self.spinUebernatuerlichSpent = QtWidgets.QSpinBox(Form)
self.spinUebernatuerlichSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUebernatuerlichSpent.setReadOnly(True)
self.spinUebernatuerlichSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUebernatuerlichSpent.setMaximum(999999)
self.spinUebernatuerlichSpent.setObjectName("spinUebernatuerlichSpent")
self.gridLayout.addWidget(self.spinUebernatuerlichSpent, 7, 3, 1, 1)
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 3, 1, 1, 1)
self.spinProfanSpent = QtWidgets.QSpinBox(Form)
self.spinProfanSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinProfanSpent.setReadOnly(True)
self.spinProfanSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinProfanSpent.setMaximum(999999)
self.spinProfanSpent.setObjectName("spinProfanSpent")
self.gridLayout.addWidget(self.spinProfanSpent, 3, 3, 1, 1)
self.label_2 = QtWidgets.QLabel(Form)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1)
self.spinUeberTalentePercent = QtWidgets.QSpinBox(Form)
self.spinUeberTalentePercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUeberTalentePercent.setReadOnly(True)
self.spinUeberTalentePercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUeberTalentePercent.setMaximum(100)
self.spinUeberTalentePercent.setObjectName("spinUeberTalentePercent")
self.gridLayout.addWidget(self.spinUeberTalentePercent, 10, 4, 1, 1)
self.labelUeber2 = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setItalic(True)
self.labelUeber2.setFont(font)
self.labelUeber2.setObjectName("labelUeber2")
self.gridLayout.addWidget(self.labelUeber2, 9, 1, 1, 1)
self.spinProfanPercent = QtWidgets.QSpinBox(Form)
self.spinProfanPercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinProfanPercent.setReadOnly(True)
self.spinProfanPercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinProfanPercent.setMaximum(100)
self.spinProfanPercent.setObjectName("spinProfanPercent")
self.gridLayout.addWidget(self.spinProfanPercent, 3, 4, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem3, 1, 0, 1, 1)
self.label = QtWidgets.QLabel(Form)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
self.spinAttributeSpent = QtWidgets.QSpinBox(Form)
self.spinAttributeSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinAttributeSpent.setReadOnly(True)
self.spinAttributeSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinAttributeSpent.setMaximum(99999999)
self.spinAttributeSpent.setObjectName("spinAttributeSpent")
self.gridLayout.addWidget(self.spinAttributeSpent, 1, 3, 1, 1)
self.spinUebernatuerlichPercent = QtWidgets.QSpinBox(Form)
self.spinUebernatuerlichPercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUebernatuerlichPercent.setReadOnly(True)
self.spinUebernatuerlichPercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUebernatuerlichPercent.setMaximum(100)
self.spinUebernatuerlichPercent.setObjectName("spinUebernatuerlichPercent")
self.gridLayout.addWidget(self.spinUebernatuerlichPercent, 7, 4, 1, 1)
self.spinUeberFertigkeitenPercent = QtWidgets.QSpinBox(Form)
self.spinUeberFertigkeitenPercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinUeberFertigkeitenPercent.setReadOnly(True)
self.spinUeberFertigkeitenPercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinUeberFertigkeitenPercent.setMaximum(100)
self.spinUeberFertigkeitenPercent.setObjectName("spinUeberFertigkeitenPercent")
self.gridLayout.addWidget(self.spinUeberFertigkeitenPercent, 9, 4, 1, 1)
self.label_8 = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setItalic(True)
self.label_8.setFont(font)
self.label_8.setObjectName("label_8")
self.gridLayout.addWidget(self.label_8, 4, 1, 1, 1)
self.label_9 = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setItalic(True)
self.label_9.setFont(font)
self.label_9.setObjectName("label_9")
self.gridLayout.addWidget(self.label_9, 5, 1, 1, 1)
self.spinFertigkeitenSpent = QtWidgets.QSpinBox(Form)
self.spinFertigkeitenSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinFertigkeitenSpent.setReadOnly(True)
self.spinFertigkeitenSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinFertigkeitenSpent.setMaximum(999999)
self.spinFertigkeitenSpent.setObjectName("spinFertigkeitenSpent")
self.gridLayout.addWidget(self.spinFertigkeitenSpent, 4, 3, 1, 1)
self.spinTalenteSpent = QtWidgets.QSpinBox(Form)
self.spinTalenteSpent.setAlignment(QtCore.Qt.AlignCenter)
self.spinTalenteSpent.setReadOnly(True)
self.spinTalenteSpent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinTalenteSpent.setMaximum(999999)
self.spinTalenteSpent.setObjectName("spinTalenteSpent")
self.gridLayout.addWidget(self.spinTalenteSpent, 5, 3, 1, 1)
self.labelUeber1 = QtWidgets.QLabel(Form)
self.labelUeber1.setObjectName("labelUeber1")
self.gridLayout.addWidget(self.labelUeber1, 7, 1, 1, 1)
self.spinFertigkeitenPercent = QtWidgets.QSpinBox(Form)
self.spinFertigkeitenPercent.setAlignment(QtCore.Qt.AlignCenter)
self.spinFertigkeitenPercent.setReadOnly(True)
self.spinFertigkeitenPercent.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinFertigkeitenPercent.setMaximum(100)
self.spinFertigkeitenPercent.setObjectName("spinFertigkeitenPercent")
self.gridLayout.addWidget(self.spinFertigkeitenPercent, 4, 4, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
Form.setTabOrder(self.spinAttributeSpent, self.spinAttributePercent)
Form.setTabOrder(self.spinAttributePercent, self.spinVorteileSpent)
Form.setTabOrder(self.spinVorteileSpent, self.spinVorteilePercent)
Form.setTabOrder(self.spinVorteilePercent, self.spinProfanSpent)
Form.setTabOrder(self.spinProfanSpent, self.spinProfanPercent)
Form.setTabOrder(self.spinProfanPercent, self.spinFertigkeitenSpent)
Form.setTabOrder(self.spinFertigkeitenSpent, self.spinFertigkeitenPercent)
Form.setTabOrder(self.spinFertigkeitenPercent, self.spinTalenteSpent)
Form.setTabOrder(self.spinTalenteSpent, self.spinTalentePercent)
Form.setTabOrder(self.spinTalentePercent, self.spinFreieSpent)
Form.setTabOrder(self.spinFreieSpent, self.spinFreiePercent)
Form.setTabOrder(self.spinFreiePercent, self.spinUebernatuerlichSpent)
Form.setTabOrder(self.spinUebernatuerlichSpent, self.spinUebernatuerlichPercent)
Form.setTabOrder(self.spinUebernatuerlichPercent, self.spinUeberFertigkeitenSpent)
Form.setTabOrder(self.spinUeberFertigkeitenSpent, self.spinUeberFertigkeitenPercent)
Form.setTabOrder(self.spinUeberFertigkeitenPercent, self.spinUeberTalenteSpent)
Form.setTabOrder(self.spinUeberTalenteSpent, self.spinUeberTalentePercent)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.spinFreiePercent.setSuffix(_translate("Form", " %)"))
self.spinFreiePercent.setPrefix(_translate("Form", "("))
self.spinFreieSpent.setSuffix(_translate("Form", " EP"))
self.label_4.setText(_translate("Form", " --> Freie Fertigkeiten"))
self.spinUeberFertigkeitenSpent.setSuffix(_translate("Form", " EP"))
self.spinTalentePercent.setSuffix(_translate("Form", " %)"))
self.spinTalentePercent.setPrefix(_translate("Form", "("))
self.labelUeber3.setText(_translate("Form", " --> Talente"))
self.spinUeberTalenteSpent.setSuffix(_translate("Form", " EP"))
self.spinVorteilePercent.setSuffix(_translate("Form", " %"))
self.spinVorteileSpent.setSuffix(_translate("Form", " EP"))
self.spinAttributePercent.setSuffix(_translate("Form", " %"))
self.spinUebernatuerlichSpent.setSuffix(_translate("Form", " EP"))
self.label_3.setText(_translate("Form", "Profane Fertigkeiten und Talente"))
self.spinProfanSpent.setSuffix(_translate("Form", " EP"))
self.label_2.setText(_translate("Form", "Vorteile"))
self.spinUeberTalentePercent.setSuffix(_translate("Form", " %)"))
self.spinUeberTalentePercent.setPrefix(_translate("Form", "("))
self.labelUeber2.setText(_translate("Form", " --> Fertigkeiten"))
self.spinProfanPercent.setSuffix(_translate("Form", " %"))
self.label.setText(_translate("Form", "Attribute"))
self.spinAttributeSpent.setSuffix(_translate("Form", " EP"))
self.spinUebernatuerlichPercent.setSuffix(_translate("Form", " %"))
self.spinUeberFertigkeitenPercent.setSuffix(_translate("Form", " %)"))
self.spinUeberFertigkeitenPercent.setPrefix(_translate("Form", "("))
self.label_8.setText(_translate("Form", " --> Fertigkeiten"))
self.label_9.setText(_translate("Form", " --> Talente"))
self.spinFertigkeitenSpent.setSuffix(_translate("Form", " EP"))
self.spinTalenteSpent.setSuffix(_translate("Form", " EP"))
self.labelUeber1.setText(_translate("Form", "Übernatürliche Fertigkeiten und Talente"))
self.spinFertigkeitenPercent.setSuffix(_translate("Form", " %)"))
self.spinFertigkeitenPercent.setPrefix(_translate("Form", "("))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Form = QtWidgets.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())