-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_MainWindow.py
748 lines (741 loc) · 36.1 KB
/
ui_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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# 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(1126, 955)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setAutoFillBackground(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.mainTitlePic = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mainTitlePic.sizePolicy().hasHeightForWidth())
self.mainTitlePic.setSizePolicy(sizePolicy)
self.mainTitlePic.setMaximumSize(QtCore.QSize(1031, 250))
self.mainTitlePic.setText("")
self.mainTitlePic.setPixmap(QtGui.QPixmap(":/images/images/maintitle.png"))
self.mainTitlePic.setScaledContents(True)
self.mainTitlePic.setObjectName("mainTitlePic")
self.verticalLayout.addWidget(self.mainTitlePic)
self.book = QtWidgets.QTabWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.book.sizePolicy().hasHeightForWidth())
self.book.setSizePolicy(sizePolicy)
self.book.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.book.setFont(font)
self.book.setIconSize(QtCore.QSize(32, 32))
self.book.setTabBarAutoHide(False)
self.book.setObjectName("book")
self.widget = QtWidgets.QWidget()
self.widget.setObjectName("widget")
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.book_search_info = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(15)
font.setBold(True)
font.setWeight(75)
self.book_search_info.setFont(font)
self.book_search_info.setObjectName("book_search_info")
self.horizontalLayout.addWidget(self.book_search_info)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.number = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.number.setFont(font)
self.number.setObjectName("number")
self.horizontalLayout_2.addWidget(self.number)
self.EditID = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditID.setFont(font)
self.EditID.setObjectName("EditID")
self.horizontalLayout_2.addWidget(self.EditID)
self.name = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.name.setFont(font)
self.name.setObjectName("name")
self.horizontalLayout_2.addWidget(self.name)
self.EditISBN = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditISBN.setFont(font)
self.EditISBN.setObjectName("EditISBN")
self.horizontalLayout_2.addWidget(self.EditISBN)
self.ISBN = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.ISBN.setFont(font)
self.ISBN.setObjectName("ISBN")
self.horizontalLayout_2.addWidget(self.ISBN)
self.EditName = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditName.setFont(font)
self.EditName.setObjectName("EditName")
self.horizontalLayout_2.addWidget(self.EditName)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.author = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.author.setFont(font)
self.author.setObjectName("author")
self.horizontalLayout_3.addWidget(self.author)
self.EditAuthor = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditAuthor.setFont(font)
self.EditAuthor.setObjectName("EditAuthor")
self.horizontalLayout_3.addWidget(self.EditAuthor)
self.price = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.price.setFont(font)
self.price.setObjectName("price")
self.horizontalLayout_3.addWidget(self.price)
self.EditPrice = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditPrice.setFont(font)
self.EditPrice.setObjectName("EditPrice")
self.horizontalLayout_3.addWidget(self.EditPrice)
self.connect2 = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.connect2.setFont(font)
self.connect2.setObjectName("connect2")
self.horizontalLayout_3.addWidget(self.connect2)
self.EditPrice2 = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.EditPrice2.setFont(font)
self.EditPrice2.setObjectName("EditPrice2")
self.horizontalLayout_3.addWidget(self.EditPrice2)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.publish_date = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.publish_date.setFont(font)
self.publish_date.setObjectName("publish_date")
self.horizontalLayout_4.addWidget(self.publish_date)
self.publish_date1 = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.publish_date1.setFont(font)
self.publish_date1.setObjectName("publish_date1")
self.horizontalLayout_4.addWidget(self.publish_date1)
self.connect1 = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.connect1.setFont(font)
self.connect1.setObjectName("connect1")
self.horizontalLayout_4.addWidget(self.connect1)
self.publish_date2 = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.publish_date2.setFont(font)
self.publish_date2.setObjectName("publish_date2")
self.horizontalLayout_4.addWidget(self.publish_date2)
self.borrow_state = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.borrow_state.setFont(font)
self.borrow_state.setObjectName("borrow_state")
self.horizontalLayout_4.addWidget(self.borrow_state)
self.borrow_state_cbbox = QtWidgets.QComboBox(self.widget)
self.borrow_state_cbbox.setObjectName("borrow_state_cbbox")
self.horizontalLayout_4.addWidget(self.borrow_state_cbbox)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.horizontalLayout_11.addLayout(self.verticalLayout_2)
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
self.verticalLayout_6.setObjectName("verticalLayout_6")
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_6.addItem(spacerItem2)
self.start_search = QtWidgets.QPushButton(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.start_search.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icons/查找.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.start_search.setIcon(icon)
self.start_search.setObjectName("start_search")
self.verticalLayout_6.addWidget(self.start_search)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_6.addItem(spacerItem3)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.remain_choose = QtWidgets.QCheckBox(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.remain_choose.setFont(font)
self.remain_choose.setText("")
self.remain_choose.setObjectName("remain_choose")
self.horizontalLayout_5.addWidget(self.remain_choose)
self.remain_choose_text = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setPointSize(12)
self.remain_choose_text.setFont(font)
self.remain_choose_text.setObjectName("remain_choose_text")
self.horizontalLayout_5.addWidget(self.remain_choose_text)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem4)
self.verticalLayout_6.addLayout(self.horizontalLayout_5)
self.verticalLayout_6.setStretch(0, 1)
self.verticalLayout_6.setStretch(1, 3)
self.verticalLayout_6.setStretch(3, 3)
self.horizontalLayout_11.addLayout(self.verticalLayout_6)
self.verticalLayout_7.addLayout(self.horizontalLayout_11)
self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.book_class = QtWidgets.QTreeWidget(self.widget)
self.book_class.setObjectName("book_class")
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.book_class.headerItem().setFont(0, font)
item_0 = QtWidgets.QTreeWidgetItem(self.book_class)
self.horizontalLayout_10.addWidget(self.book_class)
self.book_form_search = QtWidgets.QTableWidget(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.book_form_search.sizePolicy().hasHeightForWidth())
self.book_form_search.setSizePolicy(sizePolicy)
self.book_form_search.setObjectName("book_form_search")
self.book_form_search.setColumnCount(12)
self.book_form_search.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(4, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(5, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(6, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(7, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(8, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(9, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(10, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_search.setHorizontalHeaderItem(11, item)
self.horizontalLayout_10.addWidget(self.book_form_search)
self.horizontalLayout_10.setStretch(0, 1)
self.horizontalLayout_10.setStretch(1, 7)
self.verticalLayout_7.addLayout(self.horizontalLayout_10)
self.verticalLayout_7.setStretch(1, 5)
self.verticalLayout_9.addLayout(self.verticalLayout_7)
self.book.addTab(self.widget, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_2)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.book_add = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.book_add.sizePolicy().hasHeightForWidth())
self.book_add.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.book_add.setFont(font)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/icons/增加图书.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.book_add.setIcon(icon1)
self.book_add.setObjectName("book_add")
self.horizontalLayout_6.addWidget(self.book_add)
self.book_delete = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.book_delete.sizePolicy().hasHeightForWidth())
self.book_delete.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.book_delete.setFont(font)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icons/icons/删除图书.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.book_delete.setIcon(icon2)
self.book_delete.setObjectName("book_delete")
self.horizontalLayout_6.addWidget(self.book_delete)
self.txt_in = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.txt_in.sizePolicy().hasHeightForWidth())
self.txt_in.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.txt_in.setFont(font)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icons/icons/txt导入.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.txt_in.setIcon(icon3)
self.txt_in.setIconSize(QtCore.QSize(20, 20))
self.txt_in.setObjectName("txt_in")
self.horizontalLayout_6.addWidget(self.txt_in)
self.txt_out = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.txt_out.sizePolicy().hasHeightForWidth())
self.txt_out.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.txt_out.setFont(font)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icons/icons/txt导出.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.txt_out.setIcon(icon4)
self.txt_out.setObjectName("txt_out")
self.horizontalLayout_6.addWidget(self.txt_out)
self.Excel_in = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.Excel_in.sizePolicy().hasHeightForWidth())
self.Excel_in.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.Excel_in.setFont(font)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icons/icons/excel导入.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Excel_in.setIcon(icon5)
self.Excel_in.setObjectName("Excel_in")
self.horizontalLayout_6.addWidget(self.Excel_in)
self.Excel_out = QtWidgets.QPushButton(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.Excel_out.sizePolicy().hasHeightForWidth())
self.Excel_out.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.Excel_out.setFont(font)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/icons/icons/excel导出.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Excel_out.setIcon(icon6)
self.Excel_out.setObjectName("Excel_out")
self.horizontalLayout_6.addWidget(self.Excel_out)
self.db_save = QtWidgets.QPushButton(self.tab_2)
font = QtGui.QFont()
font.setPointSize(12)
self.db_save.setFont(font)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/icons/icons/db.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.db_save.setIcon(icon7)
self.db_save.setObjectName("db_save")
self.horizontalLayout_6.addWidget(self.db_save)
self.verticalLayout_4.addLayout(self.horizontalLayout_6)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.book_class_2 = QtWidgets.QTreeWidget(self.tab_2)
self.book_class_2.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.book_class_2.sizePolicy().hasHeightForWidth())
self.book_class_2.setSizePolicy(sizePolicy)
self.book_class_2.setObjectName("book_class_2")
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.book_class_2.headerItem().setFont(0, font)
item_0 = QtWidgets.QTreeWidgetItem(self.book_class_2)
self.horizontalLayout_8.addWidget(self.book_class_2)
self.book_form_add = QtWidgets.QTableWidget(self.tab_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.book_form_add.sizePolicy().hasHeightForWidth())
self.book_form_add.setSizePolicy(sizePolicy)
self.book_form_add.setObjectName("book_form_add")
self.book_form_add.setColumnCount(12)
self.book_form_add.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(4, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(5, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(6, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(7, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(8, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(9, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(10, item)
item = QtWidgets.QTableWidgetItem()
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.book_form_add.setHorizontalHeaderItem(11, item)
self.horizontalLayout_8.addWidget(self.book_form_add)
self.horizontalLayout_8.setStretch(0, 1)
self.horizontalLayout_8.setStretch(1, 7)
self.verticalLayout_4.addLayout(self.horizontalLayout_8)
self.book.addTab(self.tab_2, "")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem5)
self.label_2 = QtWidgets.QLabel(self.tab)
self.label_2.setText("")
self.label_2.setPixmap(QtGui.QPixmap(":/icons/icons/借出归还总日志.ico"))
self.label_2.setObjectName("label_2")
self.horizontalLayout_7.addWidget(self.label_2)
self.label = QtWidgets.QLabel(self.tab)
font = QtGui.QFont()
font.setPointSize(16)
self.label.setFont(font)
self.label.setObjectName("label")
self.horizontalLayout_7.addWidget(self.label)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem6)
self.verticalLayout_3.addLayout(self.horizontalLayout_7)
self.main_BRLog_table = QtWidgets.QTableWidget(self.tab)
self.main_BRLog_table.setObjectName("main_BRLog_table")
self.main_BRLog_table.setColumnCount(10)
self.main_BRLog_table.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(4, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(5, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(6, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(7, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(8, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.main_BRLog_table.setHorizontalHeaderItem(9, item)
self.verticalLayout_3.addWidget(self.main_BRLog_table)
self.book.addTab(self.tab, "")
self.verticalLayout.addWidget(self.book)
self.verticalLayout.setStretch(0, 1)
self.verticalLayout_5.addLayout(self.verticalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.book.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.book_search_info.setText(_translate("MainWindow", "书籍查询"))
self.number.setText(_translate("MainWindow", " ID"))
self.name.setText(_translate("MainWindow", "书名"))
self.ISBN.setText(_translate("MainWindow", "ISBN"))
self.author.setText(_translate("MainWindow", " 作者"))
self.price.setText(_translate("MainWindow", "价格"))
self.connect2.setText(_translate("MainWindow", "--"))
self.publish_date.setText(_translate("MainWindow", " 出版日期"))
self.connect1.setText(_translate("MainWindow", "--"))
self.borrow_state.setText(_translate("MainWindow", "借出状态"))
self.start_search.setText(_translate("MainWindow", "开始检索"))
self.remain_choose_text.setText(_translate("MainWindow", "只检索有余量的书籍"))
self.book_class.headerItem().setText(0, _translate("MainWindow", "类别选择"))
__sortingEnabled = self.book_class.isSortingEnabled()
self.book_class.setSortingEnabled(False)
self.book_class.topLevelItem(0).setText(0, _translate("MainWindow", "书籍类别"))
self.book_class.setSortingEnabled(__sortingEnabled)
item = self.book_form_search.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "ID"))
item = self.book_form_search.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "书名"))
item = self.book_form_search.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "ISBN"))
item = self.book_form_search.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "作者"))
item = self.book_form_search.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "页数"))
item = self.book_form_search.horizontalHeaderItem(5)
item.setText(_translate("MainWindow", "出版时间"))
item = self.book_form_search.horizontalHeaderItem(6)
item.setText(_translate("MainWindow", "收录时间"))
item = self.book_form_search.horizontalHeaderItem(7)
item.setText(_translate("MainWindow", "价格"))
item = self.book_form_search.horizontalHeaderItem(8)
item.setText(_translate("MainWindow", "类别"))
item = self.book_form_search.horizontalHeaderItem(9)
item.setText(_translate("MainWindow", "借出状态"))
item = self.book_form_search.horizontalHeaderItem(10)
item.setText(_translate("MainWindow", "借出次数"))
item = self.book_form_search.horizontalHeaderItem(11)
item.setText(_translate("MainWindow", "余量"))
self.book.setTabText(self.book.indexOf(self.widget), _translate("MainWindow", "图书信息"))
self.book_add.setText(_translate("MainWindow", "添加"))
self.book_delete.setText(_translate("MainWindow", "删除"))
self.txt_in.setText(_translate("MainWindow", "txt导入"))
self.txt_out.setText(_translate("MainWindow", "txt导出"))
self.Excel_in.setText(_translate("MainWindow", "Excel导入"))
self.Excel_out.setText(_translate("MainWindow", "Excel导出"))
self.db_save.setText(_translate("MainWindow", "保存到数据库"))
self.book_class_2.headerItem().setText(0, _translate("MainWindow", "类别选择"))
__sortingEnabled = self.book_class_2.isSortingEnabled()
self.book_class_2.setSortingEnabled(False)
self.book_class_2.topLevelItem(0).setText(0, _translate("MainWindow", "书籍类别"))
self.book_class_2.setSortingEnabled(__sortingEnabled)
item = self.book_form_add.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "ID"))
item = self.book_form_add.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "书名"))
item = self.book_form_add.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "ISBN"))
item = self.book_form_add.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "作者"))
item = self.book_form_add.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "页数"))
item = self.book_form_add.horizontalHeaderItem(5)
item.setText(_translate("MainWindow", "出版时间"))
item = self.book_form_add.horizontalHeaderItem(6)
item.setText(_translate("MainWindow", "收录时间"))
item = self.book_form_add.horizontalHeaderItem(7)
item.setText(_translate("MainWindow", "价格"))
item = self.book_form_add.horizontalHeaderItem(8)
item.setText(_translate("MainWindow", "类别"))
item = self.book_form_add.horizontalHeaderItem(9)
item.setText(_translate("MainWindow", "借出状态"))
item = self.book_form_add.horizontalHeaderItem(10)
item.setText(_translate("MainWindow", "借出次数"))
item = self.book_form_add.horizontalHeaderItem(11)
item.setText(_translate("MainWindow", "余量"))
self.book.setTabText(self.book.indexOf(self.tab_2), _translate("MainWindow", "图书录入导出"))
self.label.setText(_translate("MainWindow", "图书借还日志"))
item = self.main_BRLog_table.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "借阅书籍名称"))
item = self.main_BRLog_table.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "读者ID"))
item = self.main_BRLog_table.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "借阅时间"))
item = self.main_BRLog_table.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "借阅地点"))
item = self.main_BRLog_table.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "借阅时长"))
item = self.main_BRLog_table.horizontalHeaderItem(5)
item.setText(_translate("MainWindow", "归还截止日期"))
item = self.main_BRLog_table.horizontalHeaderItem(6)
item.setText(_translate("MainWindow", "是否已归还"))
item = self.main_BRLog_table.horizontalHeaderItem(7)
item.setText(_translate("MainWindow", "归还日期"))
item = self.main_BRLog_table.horizontalHeaderItem(8)
item.setText(_translate("MainWindow", "归还地点"))
item = self.main_BRLog_table.horizontalHeaderItem(9)
item.setText(_translate("MainWindow", "实际借阅时长"))
self.book.setTabText(self.book.indexOf(self.tab), _translate("MainWindow", "图书借还日志"))
import res_rc