-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_window.py
147 lines (140 loc) · 7.96 KB
/
main_window.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'fishbot_beta_design.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_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(591, 374)
self.btn_select_fishing_area = QtWidgets.QPushButton(Dialog)
self.btn_select_fishing_area.setGeometry(QtCore.QRect(30, 40, 121, 28))
self.btn_select_fishing_area.setObjectName("btn_select_fishing_area")
self.btn_start = QtWidgets.QPushButton(Dialog)
self.btn_start.setGeometry(QtCore.QRect(230, 40, 121, 28))
self.btn_start.setObjectName("btn_start")
self.btn_change_armor = QtWidgets.QPushButton(Dialog)
self.btn_change_armor.setGeometry(QtCore.QRect(450, 40, 111, 28))
self.btn_change_armor.setObjectName("btn_change_armor")
self.label_2 = QtWidgets.QLabel(Dialog)
self.label_2.setGeometry(QtCore.QRect(80, 160, 441, 31))
font = QtGui.QFont()
font.setFamily("Arial Black")
font.setPointSize(9)
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.preview_fishing_zone = QtWidgets.QPushButton(Dialog)
self.preview_fishing_zone.setGeometry(QtCore.QRect(40, 210, 161, 28))
self.preview_fishing_zone.setObjectName("preview_fishing_zone")
self.preview_armor_zone = QtWidgets.QPushButton(Dialog)
self.preview_armor_zone.setGeometry(QtCore.QRect(40, 240, 161, 28))
self.preview_armor_zone.setObjectName("preview_armor_zone")
self.label_information = QtWidgets.QLabel(Dialog)
self.label_information.setGeometry(QtCore.QRect(60, 10, 471, 20))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.label_information.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Calibri")
font.setPointSize(9)
font.setBold(True)
font.setWeight(75)
self.label_information.setFont(font)
self.label_information.setAlignment(QtCore.Qt.AlignCenter)
self.label_information.setObjectName("label_information")
self.label_worms_title = QtWidgets.QLabel(Dialog)
self.label_worms_title.setGeometry(QtCore.QRect(260, 80, 55, 16))
font = QtGui.QFont()
font.setFamily("Calibri")
font.setPointSize(9)
font.setBold(True)
font.setWeight(75)
self.label_worms_title.setFont(font)
self.label_worms_title.setToolTip("")
self.label_worms_title.setAlignment(QtCore.Qt.AlignCenter)
self.label_worms_title.setObjectName("label_worms_title")
self.check_worm_btn_1 = QtWidgets.QCheckBox(Dialog)
self.check_worm_btn_1.setGeometry(QtCore.QRect(90, 110, 81, 20))
self.check_worm_btn_1.setLayoutDirection(QtCore.Qt.LeftToRight)
self.check_worm_btn_1.setObjectName("check_worm_btn_1")
self.check_worm_btn_2 = QtWidgets.QCheckBox(Dialog)
self.check_worm_btn_2.setGeometry(QtCore.QRect(200, 110, 81, 20))
self.check_worm_btn_2.setLayoutDirection(QtCore.Qt.LeftToRight)
self.check_worm_btn_2.setObjectName("check_worm_btn_2")
self.check_worm_btn_3 = QtWidgets.QCheckBox(Dialog)
self.check_worm_btn_3.setGeometry(QtCore.QRect(310, 110, 81, 20))
self.check_worm_btn_3.setLayoutDirection(QtCore.Qt.LeftToRight)
self.check_worm_btn_3.setObjectName("check_worm_btn_3")
self.check_worm_btn_4 = QtWidgets.QCheckBox(Dialog)
self.check_worm_btn_4.setGeometry(QtCore.QRect(420, 110, 81, 20))
self.check_worm_btn_4.setLayoutDirection(QtCore.Qt.LeftToRight)
self.check_worm_btn_4.setObjectName("check_worm_btn_4")
self.worm_count_btn_1 = QtWidgets.QSpinBox(Dialog)
self.worm_count_btn_1.setGeometry(QtCore.QRect(90, 130, 71, 22))
self.worm_count_btn_1.setSpecialValueText("")
self.worm_count_btn_1.setAccelerated(False)
self.worm_count_btn_1.setMaximum(200)
self.worm_count_btn_1.setProperty("value", 200)
self.worm_count_btn_1.setObjectName("worm_count_btn_1")
self.worm_count_btn_2 = QtWidgets.QSpinBox(Dialog)
self.worm_count_btn_2.setGeometry(QtCore.QRect(200, 130, 71, 22))
self.worm_count_btn_2.setMaximum(200)
self.worm_count_btn_2.setProperty("value", 200)
self.worm_count_btn_2.setObjectName("worm_count_btn_2")
self.worm_count_btn_3 = QtWidgets.QSpinBox(Dialog)
self.worm_count_btn_3.setGeometry(QtCore.QRect(310, 130, 71, 22))
self.worm_count_btn_3.setMaximum(200)
self.worm_count_btn_3.setProperty("value", 200)
self.worm_count_btn_3.setObjectName("worm_count_btn_3")
self.worm_count_btn_4 = QtWidgets.QSpinBox(Dialog)
self.worm_count_btn_4.setGeometry(QtCore.QRect(420, 130, 71, 22))
self.worm_count_btn_4.setMaximum(200)
self.worm_count_btn_4.setProperty("value", 200)
self.worm_count_btn_4.setObjectName("worm_count_btn_4")
self.label_reading_text = QtWidgets.QLabel(Dialog)
self.label_reading_text.setGeometry(QtCore.QRect(50, 280, 491, 61))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.label_reading_text.setPalette(palette)
self.label_reading_text.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label_reading_text.setObjectName("label_reading_text")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.btn_select_fishing_area.setText(_translate("Dialog", "Obszar łowienia"))
self.btn_start.setText(_translate("Dialog", "Start"))
self.btn_change_armor.setText(_translate("Dialog", "Zbroja"))
self.label_2.setText(_translate("Dialog", "Sprawdźf poprawność ustawionych obszarów"))
self.preview_fishing_zone.setText(_translate("Dialog", "Pokaż obszar łowienia"))
self.preview_armor_zone.setText(_translate("Dialog", "Pokaż zbroję do zmiany"))
self.label_information.setText(_translate("Dialog", "Instrukcje"))
self.label_worms_title.setText(_translate("Dialog", "Robaki"))
self.check_worm_btn_1.setText(_translate("Dialog", "Klawisz 1"))
self.check_worm_btn_2.setText(_translate("Dialog", "Klawisz 2"))
self.check_worm_btn_3.setText(_translate("Dialog", "Klawisz 3"))
self.check_worm_btn_4.setText(_translate("Dialog", "Klawisz 4"))
self.label_reading_text.setText(_translate("Dialog", "Tu będzie rozpoznany tekst z czatu odnośnie tego co się złapało"))