-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_win_rc.py
103 lines (98 loc) · 5.14 KB
/
main_win_rc.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_win.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from img_rcc import *
class Ui_main_win(object):
def setupUi(self, main_win):
main_win.setObjectName("main_win")
main_win.resize(800, 601)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/Icon/board.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
main_win.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(main_win)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
main_win.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(main_win)
self.statusbar.setObjectName("statusbar")
main_win.setStatusBar(self.statusbar)
self.toolBar = QtWidgets.QToolBar(main_win)
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
self.toolBar.setObjectName("toolBar")
main_win.addToolBar(QtCore.Qt.LeftToolBarArea, self.toolBar)
self.line_action = QtWidgets.QAction(main_win)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/Icon/Line.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.line_action.setIcon(icon1)
self.line_action.setObjectName("line_action")
self.round_action = QtWidgets.QAction(main_win)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/Icon/Circle.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.round_action.setIcon(icon2)
self.round_action.setObjectName("round_action")
self.Hexagon_action = QtWidgets.QAction(main_win)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/Icon/Hexagon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Hexagon_action.setIcon(icon3)
self.Hexagon_action.setObjectName("Hexagon_action")
self.open_action = QtWidgets.QAction(main_win)
self.open_action.setObjectName("open_action")
self.save_action = QtWidgets.QAction(main_win)
self.save_action.setObjectName("save_action")
self.clear_action = QtWidgets.QAction(main_win)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/Icon/clear.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.clear_action.setIcon(icon4)
self.clear_action.setObjectName("clear_action")
self.fill_action = QtWidgets.QAction(main_win)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/Icon/Fill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.fill_action.setIcon(icon5)
self.fill_action.setObjectName("fill_action")
self.load_action = QtWidgets.QAction(main_win)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/Icon/Add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.load_action.setIcon(icon6)
self.load_action.setObjectName("load_action")
self.ehm_action = QtWidgets.QAction(main_win)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/Icon/Edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.ehm_action.setIcon(icon7)
self.ehm_action.setObjectName("ehm_action")
self.canny_action = QtWidgets.QAction(main_win)
self.canny_action.setIcon(icon7)
self.canny_action.setObjectName("canny_action")
self.toolBar.addAction(self.line_action)
self.toolBar.addAction(self.round_action)
self.toolBar.addAction(self.fill_action)
self.toolBar.addSeparator()
self.toolBar.addAction(self.load_action)
self.toolBar.addAction(self.ehm_action)
self.toolBar.addAction(self.canny_action)
self.toolBar.addSeparator()
self.toolBar.addAction(self.clear_action)
self.retranslateUi(main_win)
QtCore.QMetaObject.connectSlotsByName(main_win)
def retranslateUi(self, main_win):
_translate = QtCore.QCoreApplication.translate
main_win.setWindowTitle(_translate("main_win", "画板"))
self.toolBar.setWindowTitle(_translate("main_win", "toolBar"))
self.line_action.setText(_translate("main_win", "线"))
self.line_action.setToolTip(_translate("main_win", "线"))
self.round_action.setText(_translate("main_win", "圆"))
self.round_action.setToolTip(_translate("main_win", "圆"))
self.Hexagon_action.setText(_translate("main_win", "六边形"))
self.open_action.setText(_translate("main_win", "打开"))
self.open_action.setToolTip(_translate("main_win", "打开"))
self.save_action.setText(_translate("main_win", "保存"))
self.save_action.setToolTip(_translate("main_win", "保存"))
self.clear_action.setText(_translate("main_win", "清空"))
self.fill_action.setText(_translate("main_win", "填充"))
self.load_action.setText(_translate("main_win", "载入图像"))
self.ehm_action.setText(_translate("main_win", "图像增强"))
self.canny_action.setText(_translate("main_win", "边缘检测"))