@@ -16,58 +16,60 @@ def setupUi(self, MainWindow):
16
16
MainWindow .setObjectName ("MainWindow" )
17
17
MainWindow .resize (812 , 802 )
18
18
icon = QtGui .QIcon ()
19
- icon .addPixmap (QtGui .QPixmap ("main.ico" ), QtGui .QIcon .Normal , QtGui .QIcon .Off )
19
+ icon .addPixmap (QtGui .QPixmap ("main.ico" ),
20
+ QtGui .QIcon .Normal , QtGui .QIcon .Off )
20
21
MainWindow .setWindowIcon (icon )
21
22
MainWindow .setStyleSheet ("QLineEdit {\n "
22
- " border: 4px solid #3B4890;\n "
23
- " padding: 4px;\n "
24
- "}\n "
25
- "\n "
26
- "QLineEdit:focus{\n "
27
- " border: 4px solid rgb(0, 170, 255);\n "
28
- "}\n "
29
- "\n "
30
- "QPushButton {\n "
31
- " background-color: #3b4890;\n "
32
- " min-width: 5em;\n "
33
- " padding: 8px;\n "
34
- " color:white;\n "
35
- "\n "
36
- " border-style: outset;\n "
37
- " border-width: 2px;\n "
38
- " border-radius : 5px;\n "
39
- "\n "
40
- " border-color: beige;\n "
41
- "}\n "
42
- "\n "
43
- "QPushButton:pressed {\n "
44
- " background-color: #29367C;\n "
45
- " border-style: inset;\n "
46
- "}\n "
47
- "\n "
48
- "QComboBox {\n "
49
- " border: 4px solid #3B4890;\n "
50
- " padding: 4px;\n "
51
- "}\n "
52
- "\n "
53
- "QComboBox::drop-down \n "
54
- "{\n "
55
- " border: 0px;\n "
56
- "}\n "
57
- "\n "
58
- "QComboBox::down-arrow {\n "
59
- " image: url(git.png);\n "
60
- " width: 28px;\n "
61
- " height: 28px;\n "
62
- "}" )
23
+ " border: 4px solid #3B4890;\n "
24
+ " padding: 4px;\n "
25
+ "}\n "
26
+ "\n "
27
+ "QLineEdit:focus{\n "
28
+ " border: 4px solid rgb(0, 170, 255);\n "
29
+ "}\n "
30
+ "\n "
31
+ "QPushButton {\n "
32
+ " background-color: #3b4890;\n "
33
+ " min-width: 5em;\n "
34
+ " padding: 8px;\n "
35
+ " color:white;\n "
36
+ "\n "
37
+ " border-style: outset;\n "
38
+ " border-width: 2px;\n "
39
+ " border-radius : 5px;\n "
40
+ "\n "
41
+ " border-color: beige;\n "
42
+ "}\n "
43
+ "\n "
44
+ "QPushButton:pressed {\n "
45
+ " background-color: #29367C;\n "
46
+ " border-style: inset;\n "
47
+ "}\n "
48
+ "\n "
49
+ "QComboBox {\n "
50
+ " border: 4px solid #3B4890;\n "
51
+ " padding: 4px;\n "
52
+ "}\n "
53
+ "\n "
54
+ "QComboBox::drop-down \n "
55
+ "{\n "
56
+ " border: 0px;\n "
57
+ "}\n "
58
+ "\n "
59
+ "QComboBox::down-arrow {\n "
60
+ " image: url(git.png);\n "
61
+ " width: 28px;\n "
62
+ " height: 28px;\n "
63
+ "}" )
63
64
self .centralwidget = QtWidgets .QWidget (MainWindow )
64
65
self .centralwidget .setObjectName ("centralwidget" )
65
66
self .gridLayout = QtWidgets .QGridLayout (self .centralwidget )
66
67
self .gridLayout .setObjectName ("gridLayout" )
67
68
self .verticalLayout = QtWidgets .QVBoxLayout ()
68
69
self .verticalLayout .setObjectName ("verticalLayout" )
69
70
self .horizontalLayout = QtWidgets .QHBoxLayout ()
70
- self .horizontalLayout .setSizeConstraint (QtWidgets .QLayout .SetDefaultConstraint )
71
+ self .horizontalLayout .setSizeConstraint (
72
+ QtWidgets .QLayout .SetDefaultConstraint )
71
73
self .horizontalLayout .setSpacing (2 )
72
74
self .horizontalLayout .setObjectName ("horizontalLayout" )
73
75
self .comboBox = QtWidgets .QComboBox (self .centralwidget )
@@ -89,8 +91,8 @@ def setupUi(self, MainWindow):
89
91
self .txt_repeat .setFont (font )
90
92
self .txt_repeat .setToolTip ("" )
91
93
self .txt_repeat .setStyleSheet ("#searchBox {\n "
92
- " border: 4px solid #3b4890;\n "
93
- "}" )
94
+ " border: 4px solid #3b4890;\n "
95
+ "}" )
94
96
self .txt_repeat .setObjectName ("txt_repeat" )
95
97
self .horizontalLayout .addWidget (self .txt_repeat )
96
98
self .txt_id = QtWidgets .QLineEdit (self .centralwidget )
@@ -100,8 +102,8 @@ def setupUi(self, MainWindow):
100
102
self .txt_id .setFont (font )
101
103
self .txt_id .setToolTip ("" )
102
104
self .txt_id .setStyleSheet ("#searchBox {\n "
103
- " border: 4px solid #3b4890;\n "
104
- "}" )
105
+ " border: 4px solid #3b4890;\n "
106
+ "}" )
105
107
self .txt_id .setObjectName ("txt_id" )
106
108
self .horizontalLayout .addWidget (self .txt_id )
107
109
self .txt_keyword = QtWidgets .QLineEdit (self .centralwidget )
@@ -127,8 +129,8 @@ def setupUi(self, MainWindow):
127
129
self .verticalLayout .addLayout (self .horizontalLayout )
128
130
self .articleView = QtWidgets .QTableWidget (self .centralwidget )
129
131
self .articleView .setStyleSheet ("QLabel#label{\n "
130
- "color : rgb(85, 85, 255)\n "
131
- "}" )
132
+ "color : rgb(85, 85, 255)\n "
133
+ "}" )
132
134
self .articleView .setShowGrid (True )
133
135
self .articleView .setGridStyle (QtCore .Qt .SolidLine )
134
136
self .articleView .setObjectName ("articleView" )
@@ -159,16 +161,17 @@ def setupUi(self, MainWindow):
159
161
font .setWeight (75 )
160
162
self .label .setFont (font )
161
163
self .label .setStyleSheet ("QLabel#label{\n "
162
- "color : rgb(85, 85, 255)\n "
163
- "}" )
164
+ "color : rgb(85, 85, 255)\n "
165
+ "}" )
164
166
self .label .setObjectName ("label" )
165
167
self .horizontalLayout_2 .addWidget (self .label )
166
168
self .txt_status = QtWidgets .QLabel (self .centralwidget )
167
169
font = QtGui .QFont ()
168
170
font .setFamily ("나눔고딕" )
169
171
font .setPointSize (10 )
170
172
self .txt_status .setFont (font )
171
- self .txt_status .setAlignment (QtCore .Qt .AlignRight | QtCore .Qt .AlignTrailing | QtCore .Qt .AlignVCenter )
173
+ self .txt_status .setAlignment (
174
+ QtCore .Qt .AlignRight | QtCore .Qt .AlignTrailing | QtCore .Qt .AlignVCenter )
172
175
self .txt_status .setObjectName ("txt_status" )
173
176
self .horizontalLayout_2 .addWidget (self .txt_status )
174
177
self .verticalLayout .addLayout (self .horizontalLayout_2 )
@@ -179,16 +182,20 @@ def setupUi(self, MainWindow):
179
182
MainWindow .setStatusBar (self .statusbar )
180
183
181
184
self .retranslateUi (MainWindow )
182
- self .btn_Search .clicked .connect (MainWindow .search ) # type: ignore
183
- self .articleView .itemDoubleClicked ['QTableWidgetItem*' ].connect (MainWindow .item_dbl_click ) # type: ignore
184
- self .txt_keyword .returnPressed .connect (MainWindow .search ) # type: ignore
185
- self .txt_id .returnPressed .connect (MainWindow .search ) # type: ignore
186
- self .txt_repeat .returnPressed .connect (MainWindow .search ) # type: ignore
185
+ self .btn_Search .clicked .connect (MainWindow .search ) # type: ignore
186
+ self .articleView .itemDoubleClicked ['QTableWidgetItem*' ].connect (
187
+ MainWindow .item_dbl_click ) # type: ignore
188
+ self .txt_keyword .returnPressed .connect (
189
+ MainWindow .search ) # type: ignore
190
+ self .txt_id .returnPressed .connect (MainWindow .search ) # type: ignore
191
+ self .txt_repeat .returnPressed .connect (
192
+ MainWindow .search ) # type: ignore
187
193
QtCore .QMetaObject .connectSlotsByName (MainWindow )
188
194
189
195
def retranslateUi (self , MainWindow ):
190
196
_translate = QtCore .QCoreApplication .translate
191
- MainWindow .setWindowTitle (_translate ("MainWindow" , "DCINSIDE ARTICLE FINDER v0.152 Beta" ))
197
+ MainWindow .setWindowTitle (_translate (
198
+ "MainWindow" , "DCINSIDE ARTICLE FINDER v0.152 Beta" ))
192
199
self .comboBox .setItemText (0 , _translate ("MainWindow" , "제목+내용" ))
193
200
self .comboBox .setItemText (1 , _translate ("MainWindow" , "제목" ))
194
201
self .comboBox .setItemText (2 , _translate ("MainWindow" , "내용" ))
@@ -213,7 +220,8 @@ def retranslateUi(self, MainWindow):
213
220
item .setText (_translate ("MainWindow" , "조회" ))
214
221
item = self .articleView .horizontalHeaderItem (6 )
215
222
item .setText (_translate ("MainWindow" , "추천" ))
216
- self .label .setText (_translate ("MainWindow" , "Copyright 2022. File(pgh268400@naver.com) all rights reserved." ))
223
+ self .label .setText (_translate (
224
+ "MainWindow" , "Copyright 2022. File(pgh268400@naver.com) all rights reserved." ))
217
225
self .txt_status .setText (_translate ("MainWindow" , "상태 : IDLE" ))
218
226
219
227
0 commit comments