-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.py
1119 lines (1112 loc) · 57.1 KB
/
mainwindow.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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1030, 405)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QtCore.QSize(1030, 405))
MainWindow.setMaximumSize(QtCore.QSize(1030, 405))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/PyTravCalc_icon_16x16.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.taskBox = QtWidgets.QGroupBox(self.centralwidget)
self.taskBox.setGeometry(QtCore.QRect(10, 10, 481, 271))
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.taskBox.setFont(font)
self.taskBox.setObjectName("taskBox")
self.effectlabel = QtWidgets.QLabel(self.taskBox)
self.effectlabel.setGeometry(QtCore.QRect(340, 210, 41, 21))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.effectlabel.setFont(font)
self.effectlabel.setAlignment(QtCore.Qt.AlignCenter)
self.effectlabel.setObjectName("effectlabel")
self.effect_result = QtWidgets.QLabel(self.taskBox)
self.effect_result.setGeometry(QtCore.QRect(250, 230, 221, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.effect_result.sizePolicy().hasHeightForWidth())
self.effect_result.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.effect_result.setFont(font)
self.effect_result.setFrameShape(QtWidgets.QFrame.Box)
self.effect_result.setFrameShadow(QtWidgets.QFrame.Sunken)
self.effect_result.setText("")
self.effect_result.setAlignment(QtCore.Qt.AlignCenter)
self.effect_result.setObjectName("effect_result")
self.label_1 = QtWidgets.QLabel(self.taskBox)
self.label_1.setGeometry(QtCore.QRect(0, 80, 101, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_1.setFont(font)
self.label_1.setAlignment(QtCore.Qt.AlignCenter)
self.label_1.setObjectName("label_1")
self.plus_sign_2 = QtWidgets.QLabel(self.taskBox)
self.plus_sign_2.setGeometry(QtCore.QRect(230, 110, 16, 16))
self.plus_sign_2.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_2.setObjectName("plus_sign_2")
self.equal_sign = QtWidgets.QLabel(self.taskBox)
self.equal_sign.setGeometry(QtCore.QRect(400, 110, 16, 16))
self.equal_sign.setAlignment(QtCore.Qt.AlignCenter)
self.equal_sign.setObjectName("equal_sign")
self.resultlabel = QtWidgets.QLabel(self.taskBox)
self.resultlabel.setGeometry(QtCore.QRect(10, 210, 71, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.resultlabel.setFont(font)
self.resultlabel.setAlignment(QtCore.Qt.AlignCenter)
self.resultlabel.setObjectName("resultlabel")
self.totalDM = QtWidgets.QLabel(self.taskBox)
self.totalDM.setGeometry(QtCore.QRect(430, 100, 31, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.totalDM.sizePolicy().hasHeightForWidth())
self.totalDM.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.totalDM.setFont(font)
self.totalDM.setFrameShape(QtWidgets.QFrame.Box)
self.totalDM.setFrameShadow(QtWidgets.QFrame.Sunken)
self.totalDM.setAlignment(QtCore.Qt.AlignCenter)
self.totalDM.setObjectName("totalDM")
self.inputDM = QtWidgets.QSpinBox(self.taskBox)
self.inputDM.setGeometry(QtCore.QRect(260, 100, 51, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputDM.setFont(font)
self.inputDM.setFrame(True)
self.inputDM.setAlignment(QtCore.Qt.AlignCenter)
self.inputDM.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
self.inputDM.setMinimum(-99)
self.inputDM.setMaximum(99)
self.inputDM.setObjectName("inputDM")
self.inputchar = QtWidgets.QSpinBox(self.taskBox)
self.inputchar.setGeometry(QtCore.QRect(30, 100, 41, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputchar.setFont(font)
self.inputchar.setFrame(True)
self.inputchar.setAlignment(QtCore.Qt.AlignCenter)
self.inputchar.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
self.inputchar.setMinimum(0)
self.inputchar.setMaximum(21)
self.inputchar.setProperty("value", 7)
self.inputchar.setObjectName("inputchar")
self.plus_sign_1 = QtWidgets.QLabel(self.taskBox)
self.plus_sign_1.setGeometry(QtCore.QRect(150, 110, 16, 16))
self.plus_sign_1.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_1.setObjectName("plus_sign_1")
self.inputlevel = QtWidgets.QSpinBox(self.taskBox)
self.inputlevel.setGeometry(QtCore.QRect(180, 100, 41, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputlevel.setFont(font)
self.inputlevel.setAlignment(QtCore.Qt.AlignCenter)
self.inputlevel.setMinimum(-3)
self.inputlevel.setMaximum(5)
self.inputlevel.setSingleStep(1)
self.inputlevel.setObjectName("inputlevel")
self.die1Label = QtWidgets.QLabel(self.taskBox)
self.die1Label.setGeometry(QtCore.QRect(300, 150, 48, 48))
self.die1Label.setText("")
self.die1Label.setPixmap(QtGui.QPixmap(":/images/die1_0.png"))
self.die1Label.setObjectName("die1Label")
self.die3Label = QtWidgets.QLabel(self.taskBox)
self.die3Label.setGeometry(QtCore.QRect(420, 150, 48, 48))
self.die3Label.setText("")
self.die3Label.setPixmap(QtGui.QPixmap(":/images/die2_0.png"))
self.die3Label.setObjectName("die3Label")
self.die2Label = QtWidgets.QLabel(self.taskBox)
self.die2Label.setGeometry(QtCore.QRect(350, 150, 48, 48))
self.die2Label.setText("")
self.die2Label.setPixmap(QtGui.QPixmap(":/images/die2_0.png"))
self.die2Label.setObjectName("die2Label")
self.rollBox = QtWidgets.QGroupBox(self.taskBox)
self.rollBox.setGeometry(QtCore.QRect(10, 140, 281, 61))
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.rollBox.setFont(font)
self.rollBox.setObjectName("rollBox")
self.roll2D_Button = QtWidgets.QPushButton(self.rollBox)
self.roll2D_Button.setGeometry(QtCore.QRect(10, 20, 61, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.roll2D_Button.setFont(font)
self.roll2D_Button.setFlat(False)
self.roll2D_Button.setObjectName("roll2D_Button")
self.rollBoon_Button = QtWidgets.QPushButton(self.rollBox)
self.rollBoon_Button.setGeometry(QtCore.QRect(70, 20, 61, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.rollBoon_Button.setFont(font)
self.rollBoon_Button.setFlat(False)
self.rollBoon_Button.setObjectName("rollBoon_Button")
self.rollBane_Button = QtWidgets.QPushButton(self.rollBox)
self.rollBane_Button.setGeometry(QtCore.QRect(130, 20, 61, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.rollBane_Button.setFont(font)
self.rollBane_Button.setFlat(False)
self.rollBane_Button.setObjectName("rollBane_Button")
self.rollD66_Button = QtWidgets.QPushButton(self.rollBox)
self.rollD66_Button.setGeometry(QtCore.QRect(210, 20, 61, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setWeight(75)
self.rollD66_Button.setFont(font)
self.rollD66_Button.setObjectName("rollD66_Button")
self.plus_sign_5 = QtWidgets.QLabel(self.taskBox)
self.plus_sign_5.setGeometry(QtCore.QRect(320, 110, 16, 16))
self.plus_sign_5.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_5.setObjectName("plus_sign_5")
self.chainedDM = QtWidgets.QLabel(self.taskBox)
self.chainedDM.setGeometry(QtCore.QRect(360, 100, 31, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.chainedDM.sizePolicy().hasHeightForWidth())
self.chainedDM.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.chainedDM.setFont(font)
self.chainedDM.setFrameShape(QtWidgets.QFrame.Box)
self.chainedDM.setFrameShadow(QtWidgets.QFrame.Sunken)
self.chainedDM.setAlignment(QtCore.Qt.AlignCenter)
self.chainedDM.setObjectName("chainedDM")
self.charmod = QtWidgets.QLabel(self.taskBox)
self.charmod.setGeometry(QtCore.QRect(110, 100, 31, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.charmod.sizePolicy().hasHeightForWidth())
self.charmod.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.charmod.setFont(font)
self.charmod.setFrameShape(QtWidgets.QFrame.Box)
self.charmod.setFrameShadow(QtWidgets.QFrame.Sunken)
self.charmod.setAlignment(QtCore.Qt.AlignCenter)
self.charmod.setObjectName("charmod")
self.dieRange = QtWidgets.QLabel(self.taskBox)
self.dieRange.setGeometry(QtCore.QRect(300, 130, 101, 20))
self.dieRange.setText("")
self.dieRange.setPixmap(QtGui.QPixmap(":/images/die_range.png"))
self.dieRange.setAlignment(QtCore.Qt.AlignCenter)
self.dieRange.setObjectName("dieRange")
self.selChained = QtWidgets.QCheckBox(self.taskBox)
self.selChained.setGeometry(QtCore.QRect(340, 100, 16, 17))
self.selChained.setText("")
self.selChained.setObjectName("selChained")
self.difflabel = QtWidgets.QLabel(self.taskBox)
self.difflabel.setGeometry(QtCore.QRect(30, 10, 101, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.difflabel.setFont(font)
self.difflabel.setAlignment(QtCore.Qt.AlignCenter)
self.difflabel.setObjectName("difflabel")
self.selDiff = QtWidgets.QComboBox(self.taskBox)
self.selDiff.setGeometry(QtCore.QRect(10, 30, 141, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.selDiff.setFont(font)
self.selDiff.setLayoutDirection(QtCore.Qt.LeftToRight)
self.selDiff.setEditable(False)
self.selDiff.setMaxVisibleItems(11)
self.selDiff.setMaxCount(11)
self.selDiff.setMinimumContentsLength(0)
self.selDiff.setObjectName("selDiff")
self.inputtasks = QtWidgets.QSpinBox(self.taskBox)
self.inputtasks.setGeometry(QtCore.QRect(180, 30, 41, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputtasks.setFont(font)
self.inputtasks.setFrame(True)
self.inputtasks.setAlignment(QtCore.Qt.AlignCenter)
self.inputtasks.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
self.inputtasks.setMinimum(1)
self.inputtasks.setMaximum(5)
self.inputtasks.setObjectName("inputtasks")
self.numTasksLabel = QtWidgets.QLabel(self.taskBox)
self.numTasksLabel.setGeometry(QtCore.QRect(160, 10, 81, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.numTasksLabel.setFont(font)
self.numTasksLabel.setAlignment(QtCore.Qt.AlignCenter)
self.numTasksLabel.setObjectName("numTasksLabel")
self.selTimeframe = QtWidgets.QComboBox(self.taskBox)
self.selTimeframe.setGeometry(QtCore.QRect(250, 30, 101, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setItalic(False)
font.setWeight(75)
self.selTimeframe.setFont(font)
self.selTimeframe.setLayoutDirection(QtCore.Qt.LeftToRight)
self.selTimeframe.setEditable(False)
self.selTimeframe.setMaxVisibleItems(10)
self.selTimeframe.setMaxCount(10)
self.selTimeframe.setMinimumContentsLength(0)
self.selTimeframe.setObjectName("selTimeframe")
self.selNewTimeframe = QtWidgets.QComboBox(self.taskBox)
self.selNewTimeframe.setGeometry(QtCore.QRect(370, 30, 101, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.selNewTimeframe.setFont(font)
self.selNewTimeframe.setLayoutDirection(QtCore.Qt.LeftToRight)
self.selNewTimeframe.setEditable(False)
self.selNewTimeframe.setMaxVisibleItems(10)
self.selNewTimeframe.setMaxCount(10)
self.selNewTimeframe.setMinimumContentsLength(0)
self.selNewTimeframe.setObjectName("selNewTimeframe")
self.timeframeLabel_1 = QtWidgets.QLabel(self.taskBox)
self.timeframeLabel_1.setGeometry(QtCore.QRect(260, 10, 81, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.timeframeLabel_1.setFont(font)
self.timeframeLabel_1.setAlignment(QtCore.Qt.AlignCenter)
self.timeframeLabel_1.setObjectName("timeframeLabel_1")
self.timeframeLabel_2 = QtWidgets.QLabel(self.taskBox)
self.timeframeLabel_2.setGeometry(QtCore.QRect(370, 10, 101, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.timeframeLabel_2.setFont(font)
self.timeframeLabel_2.setAlignment(QtCore.Qt.AlignCenter)
self.timeframeLabel_2.setObjectName("timeframeLabel_2")
self.tasktimeLabel = QtWidgets.QLabel(self.taskBox)
self.tasktimeLabel.setGeometry(QtCore.QRect(120, 210, 71, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.tasktimeLabel.setFont(font)
self.tasktimeLabel.setAlignment(QtCore.Qt.AlignCenter)
self.tasktimeLabel.setObjectName("tasktimeLabel")
self.tasktime_result = QtWidgets.QLabel(self.taskBox)
self.tasktime_result.setGeometry(QtCore.QRect(90, 230, 141, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tasktime_result.sizePolicy().hasHeightForWidth())
self.tasktime_result.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.tasktime_result.setFont(font)
self.tasktime_result.setFrameShape(QtWidgets.QFrame.Box)
self.tasktime_result.setFrameShadow(QtWidgets.QFrame.Sunken)
self.tasktime_result.setText("")
self.tasktime_result.setAlignment(QtCore.Qt.AlignCenter)
self.tasktime_result.setObjectName("tasktime_result")
self.label_2 = QtWidgets.QLabel(self.taskBox)
self.label_2.setGeometry(QtCore.QRect(100, 80, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.taskBox)
self.label_3.setGeometry(QtCore.QRect(160, 80, 71, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.taskBox)
self.label_4.setGeometry(QtCore.QRect(260, 80, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignCenter)
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(self.taskBox)
self.label_5.setGeometry(QtCore.QRect(320, 80, 91, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_5.setFont(font)
self.label_5.setAlignment(QtCore.Qt.AlignCenter)
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.taskBox)
self.label_6.setGeometry(QtCore.QRect(410, 80, 61, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6")
self.rollresult = QtWidgets.QLabel(self.taskBox)
self.rollresult.setGeometry(QtCore.QRect(20, 230, 41, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rollresult.sizePolicy().hasHeightForWidth())
self.rollresult.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.rollresult.setFont(font)
self.rollresult.setFrameShape(QtWidgets.QFrame.Box)
self.rollresult.setFrameShadow(QtWidgets.QFrame.Sunken)
self.rollresult.setText("")
self.rollresult.setAlignment(QtCore.Qt.AlignCenter)
self.rollresult.setObjectName("rollresult")
self.outcomeBox = QtWidgets.QGroupBox(self.centralwidget)
self.outcomeBox.setGeometry(QtCore.QRect(690, 10, 331, 281))
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.outcomeBox.setFont(font)
self.outcomeBox.setObjectName("outcomeBox")
self.mpl = MplWidget(self.outcomeBox)
self.mpl.setGeometry(QtCore.QRect(0, 10, 331, 271))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
self.mpl.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.mpl.setFont(font)
self.mpl.setObjectName("mpl")
self.brandlabel = QtWidgets.QLabel(self.centralwidget)
self.brandlabel.setGeometry(QtCore.QRect(830, 310, 171, 31))
self.brandlabel.setText("")
self.brandlabel.setPixmap(QtGui.QPixmap(":/images/shonner_brand.png"))
self.brandlabel.setAlignment(QtCore.Qt.AlignCenter)
self.brandlabel.setObjectName("brandlabel")
self.damageBox = QtWidgets.QGroupBox(self.centralwidget)
self.damageBox.setGeometry(QtCore.QRect(10, 290, 661, 71))
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.damageBox.setFont(font)
self.damageBox.setObjectName("damageBox")
self.inputdice = QtWidgets.QSpinBox(self.damageBox)
self.inputdice.setGeometry(QtCore.QRect(390, 30, 41, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputdice.setFont(font)
self.inputdice.setFrame(True)
self.inputdice.setAlignment(QtCore.Qt.AlignCenter)
self.inputdice.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
self.inputdice.setMinimum(1)
self.inputdice.setMaximum(99)
self.inputdice.setObjectName("inputdice")
self.Dicelabel = QtWidgets.QLabel(self.damageBox)
self.Dicelabel.setGeometry(QtCore.QRect(390, 10, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.Dicelabel.setFont(font)
self.Dicelabel.setAlignment(QtCore.Qt.AlignCenter)
self.Dicelabel.setObjectName("Dicelabel")
self.damage_Button = QtWidgets.QPushButton(self.damageBox)
self.damage_Button.setGeometry(QtCore.QRect(440, 20, 41, 21))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.damage_Button.setFont(font)
self.damage_Button.setFlat(False)
self.damage_Button.setObjectName("damage_Button")
self.destructive_Button = QtWidgets.QPushButton(self.damageBox)
self.destructive_Button.setGeometry(QtCore.QRect(440, 40, 41, 21))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.destructive_Button.setFont(font)
self.destructive_Button.setFlat(False)
self.destructive_Button.setObjectName("destructive_Button")
self.inputDamageDM = QtWidgets.QSpinBox(self.damageBox)
self.inputDamageDM.setGeometry(QtCore.QRect(500, 30, 41, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputDamageDM.setFont(font)
self.inputDamageDM.setFrame(True)
self.inputDamageDM.setAlignment(QtCore.Qt.AlignCenter)
self.inputDamageDM.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
self.inputDamageDM.setMinimum(-99)
self.inputDamageDM.setMaximum(99)
self.inputDamageDM.setObjectName("inputDamageDM")
self.plus_sign_3 = QtWidgets.QLabel(self.damageBox)
self.plus_sign_3.setGeometry(QtCore.QRect(480, 40, 16, 16))
self.plus_sign_3.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_3.setObjectName("plus_sign_3")
self.damageDMlabel = QtWidgets.QLabel(self.damageBox)
self.damageDMlabel.setGeometry(QtCore.QRect(510, 10, 31, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.damageDMlabel.setFont(font)
self.damageDMlabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.damageDMlabel.setObjectName("damageDMlabel")
self.totalDamagelabel = QtWidgets.QLabel(self.damageBox)
self.totalDamagelabel.setGeometry(QtCore.QRect(610, 10, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.totalDamagelabel.setFont(font)
self.totalDamagelabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.totalDamagelabel.setObjectName("totalDamagelabel")
self.totalDamage = QtWidgets.QLabel(self.damageBox)
self.totalDamage.setGeometry(QtCore.QRect(600, 30, 51, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.totalDamage.sizePolicy().hasHeightForWidth())
self.totalDamage.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.totalDamage.setFont(font)
self.totalDamage.setFrameShape(QtWidgets.QFrame.Box)
self.totalDamage.setFrameShadow(QtWidgets.QFrame.Sunken)
self.totalDamage.setText("")
self.totalDamage.setAlignment(QtCore.Qt.AlignCenter)
self.totalDamage.setObjectName("totalDamage")
self.effect_damage = QtWidgets.QLabel(self.damageBox)
self.effect_damage.setGeometry(QtCore.QRect(560, 30, 31, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.effect_damage.sizePolicy().hasHeightForWidth())
self.effect_damage.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.effect_damage.setFont(font)
self.effect_damage.setFrameShape(QtWidgets.QFrame.Box)
self.effect_damage.setFrameShadow(QtWidgets.QFrame.Sunken)
self.effect_damage.setText("")
self.effect_damage.setAlignment(QtCore.Qt.AlignCenter)
self.effect_damage.setObjectName("effect_damage")
self.plus_sign_4 = QtWidgets.QLabel(self.damageBox)
self.plus_sign_4.setGeometry(QtCore.QRect(540, 40, 16, 16))
self.plus_sign_4.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_4.setObjectName("plus_sign_4")
self.effectlabel_2 = QtWidgets.QLabel(self.damageBox)
self.effectlabel_2.setGeometry(QtCore.QRect(560, 10, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.effectlabel_2.setFont(font)
self.effectlabel_2.setObjectName("effectlabel_2")
self.inputarmor = QtWidgets.QSpinBox(self.damageBox)
self.inputarmor.setGeometry(QtCore.QRect(70, 30, 61, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputarmor.setFont(font)
self.inputarmor.setAlignment(QtCore.Qt.AlignCenter)
self.inputarmor.setMaximum(9999)
self.inputarmor.setObjectName("inputarmor")
self.armorAmountlabel = QtWidgets.QLabel(self.damageBox)
self.armorAmountlabel.setGeometry(QtCore.QRect(80, 10, 51, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.armorAmountlabel.setFont(font)
self.armorAmountlabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.armorAmountlabel.setObjectName("armorAmountlabel")
self.clearDamage_Button = QtWidgets.QPushButton(self.damageBox)
self.clearDamage_Button.setGeometry(QtCore.QRect(10, 20, 51, 41))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.clearDamage_Button.setFont(font)
self.clearDamage_Button.setObjectName("clearDamage_Button")
self.apAmountlabel = QtWidgets.QLabel(self.damageBox)
self.apAmountlabel.setGeometry(QtCore.QRect(330, 10, 41, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.apAmountlabel.setFont(font)
self.apAmountlabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.apAmountlabel.setObjectName("apAmountlabel")
self.inputap = QtWidgets.QSpinBox(self.damageBox)
self.inputap.setGeometry(QtCore.QRect(330, 30, 42, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.inputap.setFont(font)
self.inputap.setAlignment(QtCore.Qt.AlignCenter)
self.inputap.setMaximum(999)
self.inputap.setObjectName("inputap")
self.selCover = QtWidgets.QComboBox(self.damageBox)
self.selCover.setGeometry(QtCore.QRect(150, 30, 161, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.selCover.setFont(font)
self.selCover.setLayoutDirection(QtCore.Qt.LeftToRight)
self.selCover.setEditable(False)
self.selCover.setMaxVisibleItems(7)
self.selCover.setMaxCount(7)
self.selCover.setMinimumContentsLength(0)
self.selCover.setObjectName("selCover")
self.coverlable = QtWidgets.QLabel(self.damageBox)
self.coverlable.setGeometry(QtCore.QRect(210, 10, 51, 20))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.coverlable.setFont(font)
self.coverlable.setAlignment(QtCore.Qt.AlignCenter)
self.coverlable.setObjectName("coverlable")
self.plus_sign_6 = QtWidgets.QLabel(self.damageBox)
self.plus_sign_6.setGeometry(QtCore.QRect(130, 40, 16, 16))
self.plus_sign_6.setAlignment(QtCore.Qt.AlignCenter)
self.plus_sign_6.setObjectName("plus_sign_6")
self.clearAll_Button = QtWidgets.QPushButton(self.centralwidget)
self.clearAll_Button.setGeometry(QtCore.QRect(690, 300, 111, 51))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.clearAll_Button.setFont(font)
self.clearAll_Button.setObjectName("clearAll_Button")
self.manualinputBox = QtWidgets.QGroupBox(self.centralwidget)
self.manualinputBox.setGeometry(QtCore.QRect(510, 10, 161, 271))
font = QtGui.QFont()
font.setFamily("Optima")
font.setBold(True)
font.setWeight(75)
self.manualinputBox.setFont(font)
self.manualinputBox.setObjectName("manualinputBox")
self.rollBrowser = QtWidgets.QTextBrowser(self.manualinputBox)
self.rollBrowser.setGeometry(QtCore.QRect(10, 70, 141, 191))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.rollBrowser.setFont(font)
self.rollBrowser.setOpenExternalLinks(True)
self.rollBrowser.setObjectName("rollBrowser")
self.rollInput = QtWidgets.QLineEdit(self.manualinputBox)
self.rollInput.setGeometry(QtCore.QRect(70, 20, 81, 31))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.rollInput.setFont(font)
self.rollInput.setObjectName("rollInput")
self.clearRollHistory = QtWidgets.QPushButton(self.manualinputBox)
self.clearRollHistory.setGeometry(QtCore.QRect(10, 20, 51, 41))
font = QtGui.QFont()
font.setFamily("Optima")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.clearRollHistory.setFont(font)
self.clearRollHistory.setObjectName("clearRollHistory")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1030, 21))
self.menubar.setObjectName("menubar")
self.menuAction = QtWidgets.QMenu(self.menubar)
self.menuAction.setObjectName("menuAction")
self.menuSettings = QtWidgets.QMenu(self.menubar)
self.menuSettings.setObjectName("menuSettings")
self.menuAudio = QtWidgets.QMenu(self.menuSettings)
self.menuAudio.setStatusTip("")
self.menuAudio.setObjectName("menuAudio")
self.menuDice = QtWidgets.QMenu(self.menuSettings)
self.menuDice.setObjectName("menuDice")
self.menuWeb = QtWidgets.QMenu(self.menubar)
self.menuWeb.setObjectName("menuWeb")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setSizeGripEnabled(False)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionRoll_2D = QtWidgets.QAction(MainWindow)
self.actionRoll_2D.setObjectName("actionRoll_2D")
self.action_ClearAll = QtWidgets.QAction(MainWindow)
self.action_ClearAll.setObjectName("action_ClearAll")
self.actionQuit = QtWidgets.QAction(MainWindow)
self.actionQuit.setObjectName("actionQuit")
self.actionPlaySample = QtWidgets.QAction(MainWindow)
self.actionPlaySample.setEnabled(False)
self.actionPlaySample.setObjectName("actionPlaySample")
self.actionMute = QtWidgets.QAction(MainWindow)
self.actionMute.setObjectName("actionMute")
self.actionVisit_Blog = QtWidgets.QAction(MainWindow)
self.actionVisit_Blog.setObjectName("actionVisit_Blog")
self.actionFeedback = QtWidgets.QAction(MainWindow)
self.actionFeedback.setObjectName("actionFeedback")
self.actionOverview = QtWidgets.QAction(MainWindow)
self.actionOverview.setObjectName("actionOverview")
self.actionAbout_PyTravCalc = QtWidgets.QAction(MainWindow)
self.actionAbout_PyTravCalc.setObjectName("actionAbout_PyTravCalc")
self.actionRoll_Bane = QtWidgets.QAction(MainWindow)
self.actionRoll_Bane.setObjectName("actionRoll_Bane")
self.actionRoll_Boon = QtWidgets.QAction(MainWindow)
self.actionRoll_Boon.setObjectName("actionRoll_Boon")
self.actionStandardDice = QtWidgets.QAction(MainWindow)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/images/die1_6st.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionStandardDice.setIcon(icon1)
self.actionStandardDice.setObjectName("actionStandardDice")
self.actionTravellerDice = QtWidgets.QAction(MainWindow)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/images/die3_6tr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionTravellerDice.setIcon(icon2)
self.actionTravellerDice.setObjectName("actionTravellerDice")
self.actionAKODice = QtWidgets.QAction(MainWindow)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/images/die1_6ak.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionAKODice.setIcon(icon3)
self.actionAKODice.setObjectName("actionAKODice")
self.actionMetalDice = QtWidgets.QAction(MainWindow)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/images/die1_6me.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionMetalDice.setIcon(icon4)
self.actionMetalDice.setObjectName("actionMetalDice")
self.actionMaleVoice = QtWidgets.QAction(MainWindow)
self.actionMaleVoice.setEnabled(True)
self.actionMaleVoice.setObjectName("actionMaleVoice")
self.actionFemaleVoice = QtWidgets.QAction(MainWindow)
self.actionFemaleVoice.setEnabled(True)
self.actionFemaleVoice.setObjectName("actionFemaleVoice")
self.actionRobotVoice = QtWidgets.QAction(MainWindow)
self.actionRobotVoice.setObjectName("actionRobotVoice")
self.action_ClearDamage = QtWidgets.QAction(MainWindow)
self.action_ClearDamage.setObjectName("action_ClearDamage")
self.actionCUBBLEDice = QtWidgets.QAction(MainWindow)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/images/die1_6cu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionCUBBLEDice.setIcon(icon5)
self.actionCUBBLEDice.setObjectName("actionCUBBLEDice")
self.actionRomanDice = QtWidgets.QAction(MainWindow)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/images/die2_6ro.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionRomanDice.setIcon(icon6)
self.actionRomanDice.setObjectName("actionRomanDice")
self.actionRoll_D66 = QtWidgets.QAction(MainWindow)
self.actionRoll_D66.setObjectName("actionRoll_D66")
self.actionGridGrooveDice = QtWidgets.QAction(MainWindow)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/images/die1_6gg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionGridGrooveDice.setIcon(icon7)
self.actionGridGrooveDice.setObjectName("actionGridGrooveDice")
self.actionMixedDice = QtWidgets.QAction(MainWindow)
self.actionMixedDice.setObjectName("actionMixedDice")
self.actionQuestionDice = QtWidgets.QAction(MainWindow)
icon8 = QtGui.QIcon()
icon8.addPixmap(QtGui.QPixmap(":/images/die1_2qu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionQuestionDice.setIcon(icon8)
self.actionQuestionDice.setObjectName("actionQuestionDice")
self.action_ClearRollHistory = QtWidgets.QAction(MainWindow)
self.action_ClearRollHistory.setObjectName("action_ClearRollHistory")
self.actionYellowDice = QtWidgets.QAction(MainWindow)
icon9 = QtGui.QIcon()
icon9.addPixmap(QtGui.QPixmap(":/images/die2_6ye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionYellowDice.setIcon(icon9)
self.actionYellowDice.setObjectName("actionYellowDice")
self.actionSHONNERDice = QtWidgets.QAction(MainWindow)
icon10 = QtGui.QIcon()
icon10.addPixmap(QtGui.QPixmap(":/images/die2_6sh.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionSHONNERDice.setIcon(icon10)
self.actionSHONNERDice.setObjectName("actionSHONNERDice")
self.actionZocchiDice = QtWidgets.QAction(MainWindow)
icon11 = QtGui.QIcon()
icon11.addPixmap(QtGui.QPixmap(":/images/die2_6zo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionZocchiDice.setIcon(icon11)
self.actionZocchiDice.setObjectName("actionZocchiDice")
self.actionXLP_ReverseDice = QtWidgets.QAction(MainWindow)
icon12 = QtGui.QIcon()
icon12.addPixmap(QtGui.QPixmap(":/images/die2_6xl.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionXLP_ReverseDice.setIcon(icon12)
self.actionXLP_ReverseDice.setObjectName("actionXLP_ReverseDice")
self.menuAction.addAction(self.actionRoll_2D)
self.menuAction.addAction(self.actionRoll_Boon)
self.menuAction.addAction(self.actionRoll_Bane)
self.menuAction.addAction(self.actionRoll_D66)
self.menuAction.addAction(self.action_ClearRollHistory)
self.menuAction.addAction(self.action_ClearDamage)
self.menuAction.addAction(self.action_ClearAll)
self.menuAction.addSeparator()
self.menuAction.addAction(self.actionQuit)
self.menuAudio.addAction(self.actionMute)
self.menuAudio.addAction(self.actionMaleVoice)
self.menuAudio.addAction(self.actionFemaleVoice)
self.menuAudio.addAction(self.actionRobotVoice)
self.menuAudio.addAction(self.actionPlaySample)
self.menuDice.addAction(self.actionStandardDice)
self.menuDice.addAction(self.actionTravellerDice)
self.menuDice.addAction(self.actionAKODice)
self.menuDice.addAction(self.actionMetalDice)
self.menuDice.addAction(self.actionCUBBLEDice)
self.menuDice.addAction(self.actionRomanDice)
self.menuDice.addAction(self.actionGridGrooveDice)
self.menuDice.addAction(self.actionYellowDice)
self.menuDice.addAction(self.actionSHONNERDice)
self.menuDice.addAction(self.actionZocchiDice)
self.menuDice.addAction(self.actionXLP_ReverseDice)
self.menuDice.addSeparator()
self.menuDice.addAction(self.actionMixedDice)
self.menuDice.addSeparator()
self.menuDice.addAction(self.actionQuestionDice)
self.menuSettings.addAction(self.menuDice.menuAction())
self.menuSettings.addAction(self.menuAudio.menuAction())
self.menuWeb.addAction(self.actionVisit_Blog)
self.menuWeb.addAction(self.actionFeedback)
self.menuHelp.addAction(self.actionOverview)
self.menuHelp.addAction(self.actionAbout_PyTravCalc)
self.menubar.addAction(self.menuAction.menuAction())
self.menubar.addAction(self.menuSettings.menuAction())
self.menubar.addAction(self.menuWeb.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
self.selDiff.setCurrentIndex(-1)
self.selTimeframe.setCurrentIndex(-1)
self.selNewTimeframe.setCurrentIndex(-1)
self.selCover.setCurrentIndex(-1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.selDiff, self.inputtasks)
MainWindow.setTabOrder(self.inputtasks, self.selTimeframe)
MainWindow.setTabOrder(self.selTimeframe, self.selNewTimeframe)
MainWindow.setTabOrder(self.selNewTimeframe, self.inputchar)
MainWindow.setTabOrder(self.inputchar, self.inputlevel)
MainWindow.setTabOrder(self.inputlevel, self.inputDM)
MainWindow.setTabOrder(self.inputDM, self.selChained)
MainWindow.setTabOrder(self.selChained, self.roll2D_Button)
MainWindow.setTabOrder(self.roll2D_Button, self.rollBoon_Button)
MainWindow.setTabOrder(self.rollBoon_Button, self.rollBane_Button)
MainWindow.setTabOrder(self.rollBane_Button, self.rollD66_Button)
MainWindow.setTabOrder(self.rollD66_Button, self.clearRollHistory)
MainWindow.setTabOrder(self.clearRollHistory, self.rollInput)
MainWindow.setTabOrder(self.rollInput, self.rollBrowser)
MainWindow.setTabOrder(self.rollBrowser, self.clearDamage_Button)
MainWindow.setTabOrder(self.clearDamage_Button, self.inputarmor)
MainWindow.setTabOrder(self.inputarmor, self.selCover)
MainWindow.setTabOrder(self.selCover, self.inputap)
MainWindow.setTabOrder(self.inputap, self.inputdice)
MainWindow.setTabOrder(self.inputdice, self.damage_Button)
MainWindow.setTabOrder(self.damage_Button, self.destructive_Button)
MainWindow.setTabOrder(self.destructive_Button, self.inputDamageDM)
MainWindow.setTabOrder(self.inputDamageDM, self.clearAll_Button)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "PyTravCalc 3.7.2 (Beta)"))
self.taskBox.setTitle(_translate("MainWindow", "Task"))
self.effectlabel.setText(_translate("MainWindow", "Effect"))
self.effect_result.setToolTip(_translate("MainWindow", "Task effect"))
self.label_1.setText(_translate("MainWindow", "Characteristic"))
self.plus_sign_2.setText(_translate("MainWindow", "+"))
self.equal_sign.setText(_translate("MainWindow", "="))
self.resultlabel.setText(_translate("MainWindow", "Roll Result"))
self.totalDM.setToolTip(_translate("MainWindow", "Dice modifier total"))
self.totalDM.setText(_translate("MainWindow", "0"))
self.inputDM.setToolTip(_translate("MainWindow", "Added dice modifier"))
self.inputchar.setToolTip(_translate("MainWindow", "Characteristic"))
self.plus_sign_1.setText(_translate("MainWindow", "+"))
self.inputlevel.setToolTip(_translate("MainWindow", "Level of skill"))
self.die1Label.setStatusTip(_translate("MainWindow", "First die"))
self.die3Label.setStatusTip(_translate("MainWindow", "Third die"))
self.die2Label.setStatusTip(_translate("MainWindow", "Second die"))
self.rollBox.setTitle(_translate("MainWindow", "Roll"))
self.roll2D_Button.setToolTip(_translate("MainWindow", "Make a 2D roll"))
self.roll2D_Button.setText(_translate("MainWindow", "2D"))
self.rollBoon_Button.setToolTip(_translate("MainWindow", "Make a Boon roll"))
self.rollBoon_Button.setText(_translate("MainWindow", "Boon"))
self.rollBane_Button.setToolTip(_translate("MainWindow", "Make a Bane roll"))
self.rollBane_Button.setText(_translate("MainWindow", "Bane"))
self.rollD66_Button.setToolTip(_translate("MainWindow", "Make a D66 roll"))
self.rollD66_Button.setText(_translate("MainWindow", "D66"))
self.plus_sign_5.setText(_translate("MainWindow", "+"))
self.chainedDM.setToolTip(_translate("MainWindow", "Task Chained DM"))
self.charmod.setToolTip(_translate("MainWindow", "Characteristic Modifier"))
self.charmod.setText(_translate("MainWindow", "0"))
self.selChained.setToolTip(_translate("MainWindow", "Chained task?"))
self.difflabel.setText(_translate("MainWindow", "Task Difficulty"))