-
Notifications
You must be signed in to change notification settings - Fork 7
/
magnify.py
1194 lines (1187 loc) · 68.6 KB
/
magnify.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 'magnify.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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(1891, 1292)
font = QtGui.QFont()
font.setPointSize(9)
font.setUnderline(False)
MainWindow.setFont(font)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_8 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_8.setObjectName("gridLayout_8")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.gridLayout_7 = QtWidgets.QGridLayout()
self.gridLayout_7.setObjectName("gridLayout_7")
self.label_27 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_27.sizePolicy().hasHeightForWidth())
self.label_27.setSizePolicy(sizePolicy)
self.label_27.setMinimumSize(QtCore.QSize(160, 40))
self.label_27.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_27.setFont(font)
self.label_27.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_27.setObjectName("label_27")
self.gridLayout_7.addWidget(self.label_27, 1, 0, 1, 1)
self.label_24 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_24.sizePolicy().hasHeightForWidth())
self.label_24.setSizePolicy(sizePolicy)
self.label_24.setMinimumSize(QtCore.QSize(160, 40))
self.label_24.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_24.setFont(font)
self.label_24.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_24.setObjectName("label_24")
self.gridLayout_7.addWidget(self.label_24, 0, 0, 1, 1)
self.lineEdit_message = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_message.sizePolicy().hasHeightForWidth())
self.lineEdit_message.setSizePolicy(sizePolicy)
self.lineEdit_message.setMinimumSize(QtCore.QSize(650, 40))
self.lineEdit_message.setMaximumSize(QtCore.QSize(600, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_message.setFont(font)
self.lineEdit_message.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit_message.setText("")
self.lineEdit_message.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_message.setReadOnly(True)
self.lineEdit_message.setObjectName("lineEdit_message")
self.gridLayout_7.addWidget(self.lineEdit_message, 1, 1, 1, 2)
self.lineEdit_imagename = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_imagename.sizePolicy().hasHeightForWidth())
self.lineEdit_imagename.setSizePolicy(sizePolicy)
self.lineEdit_imagename.setMinimumSize(QtCore.QSize(500, 40))
self.lineEdit_imagename.setMaximumSize(QtCore.QSize(450, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_imagename.setFont(font)
self.lineEdit_imagename.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit_imagename.setText("")
self.lineEdit_imagename.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_imagename.setReadOnly(True)
self.lineEdit_imagename.setObjectName("lineEdit_imagename")
self.gridLayout_7.addWidget(self.lineEdit_imagename, 0, 1, 1, 1)
self.lineEdit_imageidx = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_imageidx.sizePolicy().hasHeightForWidth())
self.lineEdit_imageidx.setSizePolicy(sizePolicy)
self.lineEdit_imageidx.setMinimumSize(QtCore.QSize(130, 40))
self.lineEdit_imageidx.setMaximumSize(QtCore.QSize(130, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_imageidx.setFont(font)
self.lineEdit_imageidx.setLayoutDirection(QtCore.Qt.RightToLeft)
self.lineEdit_imageidx.setText("")
self.lineEdit_imageidx.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_imageidx.setReadOnly(True)
self.lineEdit_imageidx.setObjectName("lineEdit_imageidx")
self.gridLayout_7.addWidget(self.lineEdit_imageidx, 0, 2, 1, 1)
self.horizontalLayout.addLayout(self.gridLayout_7)
spacerItem1 = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
spacerItem2 = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
spacerItem3 = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
spacerItem4 = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem4)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.label_25 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_25.sizePolicy().hasHeightForWidth())
self.label_25.setSizePolicy(sizePolicy)
self.label_25.setMinimumSize(QtCore.QSize(630, 40))
self.label_25.setMaximumSize(QtCore.QSize(590, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_25.setFont(font)
self.label_25.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_25.setObjectName("label_25")
self.verticalLayout.addWidget(self.label_25)
self.label_26 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_26.sizePolicy().hasHeightForWidth())
self.label_26.setSizePolicy(sizePolicy)
self.label_26.setMinimumSize(QtCore.QSize(630, 40))
self.label_26.setMaximumSize(QtCore.QSize(590, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_26.setFont(font)
self.label_26.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_26.setObjectName("label_26")
self.verticalLayout.addWidget(self.label_26)
self.label_28 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_28.sizePolicy().hasHeightForWidth())
self.label_28.setSizePolicy(sizePolicy)
self.label_28.setMinimumSize(QtCore.QSize(630, 40))
self.label_28.setMaximumSize(QtCore.QSize(590, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_28.setFont(font)
self.label_28.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_28.setObjectName("label_28")
self.verticalLayout.addWidget(self.label_28)
self.horizontalLayout.addLayout(self.verticalLayout)
spacerItem5 = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem5)
self.gridLayout_8.addLayout(self.horizontalLayout, 6, 0, 1, 1)
self.line_5 = QtWidgets.QFrame(self.centralwidget)
self.line_5.setMinimumSize(QtCore.QSize(0, 20))
self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_5.setObjectName("line_5")
self.gridLayout_8.addWidget(self.line_5, 3, 0, 1, 1)
self.gridLayout_6 = QtWidgets.QGridLayout()
self.gridLayout_6.setObjectName("gridLayout_6")
spacerItem6 = QtWidgets.QSpacerItem(20, 638, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_6.addItem(spacerItem6, 1, 2, 2, 1)
self.graphicsView_preview = QtWidgets.QGraphicsView(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView_preview.sizePolicy().hasHeightForWidth())
self.graphicsView_preview.setSizePolicy(sizePolicy)
self.graphicsView_preview.setMinimumSize(QtCore.QSize(500, 300))
self.graphicsView_preview.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.graphicsView_preview.setObjectName("graphicsView_preview")
self.gridLayout_6.addWidget(self.graphicsView_preview, 2, 1, 1, 1)
self.graphicsView_selectarea = QtWidgets.QGraphicsView(self.centralwidget)
self.graphicsView_selectarea.setMinimumSize(QtCore.QSize(500, 300))
self.graphicsView_selectarea.setObjectName("graphicsView_selectarea")
self.gridLayout_6.addWidget(self.graphicsView_selectarea, 2, 3, 1, 1)
self.label_21 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_21.sizePolicy().hasHeightForWidth())
self.label_21.setSizePolicy(sizePolicy)
self.label_21.setMinimumSize(QtCore.QSize(140, 0))
self.label_21.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_21.setFont(font)
self.label_21.setAlignment(QtCore.Qt.AlignCenter)
self.label_21.setObjectName("label_21")
self.gridLayout_6.addWidget(self.label_21, 0, 3, 1, 1)
self.label_22 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_22.sizePolicy().hasHeightForWidth())
self.label_22.setSizePolicy(sizePolicy)
self.label_22.setMinimumSize(QtCore.QSize(140, 0))
self.label_22.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_22.setFont(font)
self.label_22.setAlignment(QtCore.Qt.AlignCenter)
self.label_22.setObjectName("label_22")
self.gridLayout_6.addWidget(self.label_22, 0, 1, 1, 1)
self.gridLayout_8.addLayout(self.gridLayout_6, 4, 0, 1, 1)
self.line_7 = QtWidgets.QFrame(self.centralwidget)
self.line_7.setMinimumSize(QtCore.QSize(0, 20))
self.line_7.setFrameShape(QtWidgets.QFrame.HLine)
self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_7.setObjectName("line_7")
self.gridLayout_8.addWidget(self.line_7, 5, 0, 1, 1)
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setMinimumSize(QtCore.QSize(0, 60))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(18)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.gridLayout_8.addWidget(self.label, 0, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem7 = QtWidgets.QSpacerItem(40, 148, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.horizontalLayout_2.addItem(spacerItem7)
self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5")
self.pushButton_save = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_save.sizePolicy().hasHeightForWidth())
self.pushButton_save.setSizePolicy(sizePolicy)
self.pushButton_save.setMinimumSize(QtCore.QSize(240, 40))
self.pushButton_save.setMaximumSize(QtCore.QSize(240, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_save.setFont(font)
self.pushButton_save.setLayoutDirection(QtCore.Qt.LeftToRight)
self.pushButton_save.setAutoFillBackground(False)
self.pushButton_save.setObjectName("pushButton_save")
self.gridLayout_5.addWidget(self.pushButton_save, 1, 0, 1, 2)
self.pushButton_reset = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_reset.sizePolicy().hasHeightForWidth())
self.pushButton_reset.setSizePolicy(sizePolicy)
self.pushButton_reset.setMinimumSize(QtCore.QSize(240, 40))
self.pushButton_reset.setMaximumSize(QtCore.QSize(240, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_reset.setFont(font)
self.pushButton_reset.setLayoutDirection(QtCore.Qt.LeftToRight)
self.pushButton_reset.setAutoFillBackground(False)
self.pushButton_reset.setObjectName("pushButton_reset")
self.gridLayout_5.addWidget(self.pushButton_reset, 3, 0, 1, 2)
self.pushButton_upload = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_upload.sizePolicy().hasHeightForWidth())
self.pushButton_upload.setSizePolicy(sizePolicy)
self.pushButton_upload.setMinimumSize(QtCore.QSize(240, 40))
self.pushButton_upload.setMaximumSize(QtCore.QSize(240, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_upload.setFont(font)
self.pushButton_upload.setLayoutDirection(QtCore.Qt.LeftToRight)
self.pushButton_upload.setAutoFillBackground(False)
self.pushButton_upload.setObjectName("pushButton_upload")
self.gridLayout_5.addWidget(self.pushButton_upload, 0, 0, 1, 2)
self.lineEdit_prefix = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_prefix.sizePolicy().hasHeightForWidth())
self.lineEdit_prefix.setSizePolicy(sizePolicy)
self.lineEdit_prefix.setMinimumSize(QtCore.QSize(112, 40))
self.lineEdit_prefix.setMaximumSize(QtCore.QSize(110, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_prefix.setFont(font)
self.lineEdit_prefix.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit_prefix.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_prefix.setObjectName("lineEdit_prefix")
self.gridLayout_5.addWidget(self.lineEdit_prefix, 2, 0, 1, 1)
self.lineEdit_suffix = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_suffix.sizePolicy().hasHeightForWidth())
self.lineEdit_suffix.setSizePolicy(sizePolicy)
self.lineEdit_suffix.setMinimumSize(QtCore.QSize(110, 40))
self.lineEdit_suffix.setMaximumSize(QtCore.QSize(110, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_suffix.setFont(font)
self.lineEdit_suffix.setLayoutDirection(QtCore.Qt.RightToLeft)
self.lineEdit_suffix.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_suffix.setObjectName("lineEdit_suffix")
self.gridLayout_5.addWidget(self.lineEdit_suffix, 2, 1, 1, 1)
self.horizontalLayout_2.addLayout(self.gridLayout_5)
self.line = QtWidgets.QFrame(self.centralwidget)
self.line.setMinimumSize(QtCore.QSize(40, 0))
self.line.setFrameShape(QtWidgets.QFrame.VLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.horizontalLayout_2.addWidget(self.line)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
self.label_4.setMinimumSize(QtCore.QSize(160, 40))
self.label_4.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
self.spinBox_resX = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_resX.sizePolicy().hasHeightForWidth())
self.spinBox_resX.setSizePolicy(sizePolicy)
self.spinBox_resX.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_resX.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_resX.setFont(font)
self.spinBox_resX.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_resX.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_resX.setMinimum(-16777215)
self.spinBox_resX.setMaximum(16777215)
self.spinBox_resX.setProperty("value", 720)
self.spinBox_resX.setDisplayIntegerBase(10)
self.spinBox_resX.setObjectName("spinBox_resX")
self.gridLayout.addWidget(self.spinBox_resX, 0, 1, 1, 2)
self.label_6 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
self.label_6.setSizePolicy(sizePolicy)
self.label_6.setMinimumSize(QtCore.QSize(30, 40))
self.label_6.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_6.setObjectName("label_6")
self.gridLayout.addWidget(self.label_6, 0, 3, 1, 1)
self.line_2 = QtWidgets.QFrame(self.centralwidget)
self.line_2.setMinimumSize(QtCore.QSize(40, 0))
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout.addWidget(self.line_2, 0, 4, 4, 1)
self.label_5 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy)
self.label_5.setMinimumSize(QtCore.QSize(160, 40))
self.label_5.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_5.setFont(font)
self.label_5.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1)
self.spinBox_resY = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_resY.sizePolicy().hasHeightForWidth())
self.spinBox_resY.setSizePolicy(sizePolicy)
self.spinBox_resY.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_resY.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_resY.setFont(font)
self.spinBox_resY.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_resY.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_resY.setMinimum(-16777215)
self.spinBox_resY.setMaximum(16777215)
self.spinBox_resY.setProperty("value", 720)
self.spinBox_resY.setDisplayIntegerBase(10)
self.spinBox_resY.setObjectName("spinBox_resY")
self.gridLayout.addWidget(self.spinBox_resY, 1, 1, 1, 2)
self.label_7 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
self.label_7.setSizePolicy(sizePolicy)
self.label_7.setMinimumSize(QtCore.QSize(30, 40))
self.label_7.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_7.setFont(font)
self.label_7.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_7.setObjectName("label_7")
self.gridLayout.addWidget(self.label_7, 1, 3, 1, 1)
self.label_1 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_1.sizePolicy().hasHeightForWidth())
self.label_1.setSizePolicy(sizePolicy)
self.label_1.setMinimumSize(QtCore.QSize(190, 40))
self.label_1.setMaximumSize(QtCore.QSize(190, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_1.setFont(font)
self.label_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_1.setObjectName("label_1")
self.gridLayout.addWidget(self.label_1, 2, 0, 1, 1)
self.spinBox_cropTop = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_cropTop.sizePolicy().hasHeightForWidth())
self.spinBox_cropTop.setSizePolicy(sizePolicy)
self.spinBox_cropTop.setMinimumSize(QtCore.QSize(80, 40))
self.spinBox_cropTop.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_cropTop.setFont(font)
self.spinBox_cropTop.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_cropTop.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_cropTop.setMinimum(-16777215)
self.spinBox_cropTop.setMaximum(16777215)
self.spinBox_cropTop.setProperty("value", 0)
self.spinBox_cropTop.setDisplayIntegerBase(10)
self.spinBox_cropTop.setObjectName("spinBox_cropTop")
self.gridLayout.addWidget(self.spinBox_cropTop, 2, 1, 1, 1)
self.spinBox_cropBottom = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_cropBottom.sizePolicy().hasHeightForWidth())
self.spinBox_cropBottom.setSizePolicy(sizePolicy)
self.spinBox_cropBottom.setMinimumSize(QtCore.QSize(80, 40))
self.spinBox_cropBottom.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_cropBottom.setFont(font)
self.spinBox_cropBottom.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_cropBottom.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_cropBottom.setMinimum(-16777215)
self.spinBox_cropBottom.setMaximum(16777215)
self.spinBox_cropBottom.setProperty("value", 0)
self.spinBox_cropBottom.setDisplayIntegerBase(10)
self.spinBox_cropBottom.setObjectName("spinBox_cropBottom")
self.gridLayout.addWidget(self.spinBox_cropBottom, 2, 2, 1, 1)
self.label_18 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_18.sizePolicy().hasHeightForWidth())
self.label_18.setSizePolicy(sizePolicy)
self.label_18.setMinimumSize(QtCore.QSize(30, 40))
self.label_18.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_18.setFont(font)
self.label_18.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_18.setObjectName("label_18")
self.gridLayout.addWidget(self.label_18, 2, 3, 1, 1)
self.label_17 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_17.sizePolicy().hasHeightForWidth())
self.label_17.setSizePolicy(sizePolicy)
self.label_17.setMinimumSize(QtCore.QSize(190, 40))
self.label_17.setMaximumSize(QtCore.QSize(190, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_17.setFont(font)
self.label_17.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_17.setObjectName("label_17")
self.gridLayout.addWidget(self.label_17, 3, 0, 1, 1)
self.spinBox_cropLeft = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_cropLeft.sizePolicy().hasHeightForWidth())
self.spinBox_cropLeft.setSizePolicy(sizePolicy)
self.spinBox_cropLeft.setMinimumSize(QtCore.QSize(80, 40))
self.spinBox_cropLeft.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_cropLeft.setFont(font)
self.spinBox_cropLeft.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_cropLeft.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_cropLeft.setMinimum(-16777215)
self.spinBox_cropLeft.setMaximum(16777215)
self.spinBox_cropLeft.setProperty("value", 0)
self.spinBox_cropLeft.setDisplayIntegerBase(10)
self.spinBox_cropLeft.setObjectName("spinBox_cropLeft")
self.gridLayout.addWidget(self.spinBox_cropLeft, 3, 1, 1, 1)
self.spinBox_cropRight = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_cropRight.sizePolicy().hasHeightForWidth())
self.spinBox_cropRight.setSizePolicy(sizePolicy)
self.spinBox_cropRight.setMinimumSize(QtCore.QSize(80, 40))
self.spinBox_cropRight.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_cropRight.setFont(font)
self.spinBox_cropRight.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_cropRight.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_cropRight.setMinimum(-16777215)
self.spinBox_cropRight.setMaximum(16777215)
self.spinBox_cropRight.setProperty("value", 0)
self.spinBox_cropRight.setDisplayIntegerBase(10)
self.spinBox_cropRight.setObjectName("spinBox_cropRight")
self.gridLayout.addWidget(self.spinBox_cropRight, 3, 2, 1, 1)
self.label_19 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_19.sizePolicy().hasHeightForWidth())
self.label_19.setSizePolicy(sizePolicy)
self.label_19.setMinimumSize(QtCore.QSize(30, 40))
self.label_19.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_19.setFont(font)
self.label_19.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_19.setObjectName("label_19")
self.gridLayout.addWidget(self.label_19, 3, 3, 1, 1)
self.horizontalLayout_2.addLayout(self.gridLayout)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_8 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy)
self.label_8.setMinimumSize(QtCore.QSize(160, 40))
self.label_8.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_8.setFont(font)
self.label_8.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_8.setObjectName("label_8")
self.gridLayout_2.addWidget(self.label_8, 0, 0, 1, 1)
self.spinBox_linewidth = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_linewidth.sizePolicy().hasHeightForWidth())
self.spinBox_linewidth.setSizePolicy(sizePolicy)
self.spinBox_linewidth.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_linewidth.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_linewidth.setFont(font)
self.spinBox_linewidth.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_linewidth.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_linewidth.setMinimum(-16777215)
self.spinBox_linewidth.setMaximum(16777215)
self.spinBox_linewidth.setProperty("value", 8)
self.spinBox_linewidth.setDisplayIntegerBase(10)
self.spinBox_linewidth.setObjectName("spinBox_linewidth")
self.gridLayout_2.addWidget(self.spinBox_linewidth, 3, 1, 1, 1)
self.label_9 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
self.label_9.setSizePolicy(sizePolicy)
self.label_9.setMinimumSize(QtCore.QSize(30, 40))
self.label_9.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_9.setFont(font)
self.label_9.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_9.setObjectName("label_9")
self.gridLayout_2.addWidget(self.label_9, 0, 2, 1, 1)
self.label_16 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth())
self.label_16.setSizePolicy(sizePolicy)
self.label_16.setMinimumSize(QtCore.QSize(160, 40))
self.label_16.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_16.setFont(font)
self.label_16.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_16.setObjectName("label_16")
self.gridLayout_2.addWidget(self.label_16, 3, 0, 1, 1)
self.spinBox_intervalX = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_intervalX.sizePolicy().hasHeightForWidth())
self.spinBox_intervalX.setSizePolicy(sizePolicy)
self.spinBox_intervalX.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_intervalX.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_intervalX.setFont(font)
self.spinBox_intervalX.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_intervalX.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_intervalX.setMinimum(-16777215)
self.spinBox_intervalX.setMaximum(16777215)
self.spinBox_intervalX.setProperty("value", 5)
self.spinBox_intervalX.setDisplayIntegerBase(10)
self.spinBox_intervalX.setObjectName("spinBox_intervalX")
self.gridLayout_2.addWidget(self.spinBox_intervalX, 0, 1, 1, 1)
self.spinBox_intervalY = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_intervalY.sizePolicy().hasHeightForWidth())
self.spinBox_intervalY.setSizePolicy(sizePolicy)
self.spinBox_intervalY.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_intervalY.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_intervalY.setFont(font)
self.spinBox_intervalY.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_intervalY.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_intervalY.setMinimum(-16777215)
self.spinBox_intervalY.setMaximum(16777215)
self.spinBox_intervalY.setProperty("value", 5)
self.spinBox_intervalY.setDisplayIntegerBase(10)
self.spinBox_intervalY.setObjectName("spinBox_intervalY")
self.gridLayout_2.addWidget(self.spinBox_intervalY, 1, 1, 1, 1)
self.label_20 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_20.sizePolicy().hasHeightForWidth())
self.label_20.setSizePolicy(sizePolicy)
self.label_20.setMinimumSize(QtCore.QSize(30, 40))
self.label_20.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_20.setFont(font)
self.label_20.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_20.setObjectName("label_20")
self.gridLayout_2.addWidget(self.label_20, 3, 2, 1, 1)
self.label_10 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy)
self.label_10.setMinimumSize(QtCore.QSize(160, 40))
self.label_10.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_10.setFont(font)
self.label_10.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_10.setObjectName("label_10")
self.gridLayout_2.addWidget(self.label_10, 1, 0, 1, 1)
self.label_12 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
self.label_12.setSizePolicy(sizePolicy)
self.label_12.setMinimumSize(QtCore.QSize(160, 40))
self.label_12.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_12.setFont(font)
self.label_12.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_12.setObjectName("label_12")
self.gridLayout_2.addWidget(self.label_12, 2, 0, 1, 1)
self.label_11 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
self.label_11.setSizePolicy(sizePolicy)
self.label_11.setMinimumSize(QtCore.QSize(30, 40))
self.label_11.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_11.setFont(font)
self.label_11.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_11.setObjectName("label_11")
self.gridLayout_2.addWidget(self.label_11, 1, 2, 1, 1)
self.spinBox_border = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_border.sizePolicy().hasHeightForWidth())
self.spinBox_border.setSizePolicy(sizePolicy)
self.spinBox_border.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_border.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_border.setFont(font)
self.spinBox_border.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_border.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_border.setMinimum(-16777215)
self.spinBox_border.setMaximum(16777215)
self.spinBox_border.setProperty("value", 0)
self.spinBox_border.setDisplayIntegerBase(10)
self.spinBox_border.setObjectName("spinBox_border")
self.gridLayout_2.addWidget(self.spinBox_border, 2, 1, 1, 1)
self.label_13 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth())
self.label_13.setSizePolicy(sizePolicy)
self.label_13.setMinimumSize(QtCore.QSize(30, 40))
self.label_13.setMaximumSize(QtCore.QSize(30, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_13.setFont(font)
self.label_13.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_13.setObjectName("label_13")
self.gridLayout_2.addWidget(self.label_13, 2, 2, 1, 1)
self.horizontalLayout_2.addLayout(self.gridLayout_2)
self.line_3 = QtWidgets.QFrame(self.centralwidget)
self.line_3.setMinimumSize(QtCore.QSize(40, 0))
self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.horizontalLayout_2.addWidget(self.line_3)
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.label_14 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth())
self.label_14.setSizePolicy(sizePolicy)
self.label_14.setMinimumSize(QtCore.QSize(160, 40))
self.label_14.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_14.setFont(font)
self.label_14.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_14.setObjectName("label_14")
self.gridLayout_3.addWidget(self.label_14, 0, 0, 1, 1)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setMinimumSize(QtCore.QSize(160, 40))
self.label_2.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_2.setObjectName("label_2")
self.gridLayout_3.addWidget(self.label_2, 3, 0, 1, 1)
self.spinBox_num = QtWidgets.QSpinBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_num.sizePolicy().hasHeightForWidth())
self.spinBox_num.setSizePolicy(sizePolicy)
self.spinBox_num.setMinimumSize(QtCore.QSize(120, 40))
self.spinBox_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.spinBox_num.setFont(font)
self.spinBox_num.setLayoutDirection(QtCore.Qt.LeftToRight)
self.spinBox_num.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_num.setMinimum(0)
self.spinBox_num.setMaximum(4)
self.spinBox_num.setProperty("value", 2)
self.spinBox_num.setObjectName("spinBox_num")
self.gridLayout_3.addWidget(self.spinBox_num, 2, 1, 1, 1)
self.lineEdit_magnification = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_magnification.sizePolicy().hasHeightForWidth())
self.lineEdit_magnification.setSizePolicy(sizePolicy)
self.lineEdit_magnification.setMinimumSize(QtCore.QSize(120, 40))
self.lineEdit_magnification.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_magnification.setFont(font)
self.lineEdit_magnification.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit_magnification.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_magnification.setObjectName("lineEdit_magnification")
self.gridLayout_3.addWidget(self.lineEdit_magnification, 1, 1, 1, 1)
self.label_15 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth())
self.label_15.setSizePolicy(sizePolicy)
self.label_15.setMinimumSize(QtCore.QSize(160, 40))
self.label_15.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_15.setFont(font)
self.label_15.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_15.setObjectName("label_15")
self.gridLayout_3.addWidget(self.label_15, 1, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy)
self.label_3.setMinimumSize(QtCore.QSize(160, 40))
self.label_3.setMaximumSize(QtCore.QSize(160, 16777215))
font = QtGui.QFont()
font.setFamily("Adobe Devanagari")
font.setPointSize(12)
self.label_3.setFont(font)
self.label_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName("label_3")
self.gridLayout_3.addWidget(self.label_3, 2, 0, 1, 1)
self.comboBox_position = QtWidgets.QComboBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBox_position.sizePolicy().hasHeightForWidth())
self.comboBox_position.setSizePolicy(sizePolicy)
self.comboBox_position.setMinimumSize(QtCore.QSize(120, 40))
self.comboBox_position.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.comboBox_position.setFont(font)
self.comboBox_position.setLayoutDirection(QtCore.Qt.LeftToRight)
self.comboBox_position.setObjectName("comboBox_position")
self.comboBox_position.addItem("")
self.comboBox_position.addItem("")
self.comboBox_position.addItem("")
self.comboBox_position.addItem("")
self.gridLayout_3.addWidget(self.comboBox_position, 3, 1, 1, 1)
self.lineEdit_ratio = QtWidgets.QLineEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_ratio.sizePolicy().hasHeightForWidth())
self.lineEdit_ratio.setSizePolicy(sizePolicy)
self.lineEdit_ratio.setMinimumSize(QtCore.QSize(120, 40))
self.lineEdit_ratio.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_ratio.setFont(font)
self.lineEdit_ratio.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit_ratio.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_ratio.setObjectName("lineEdit_ratio")
self.gridLayout_3.addWidget(self.lineEdit_ratio, 0, 1, 1, 1)
self.horizontalLayout_2.addLayout(self.gridLayout_3)
self.line_4 = QtWidgets.QFrame(self.centralwidget)
self.line_4.setMinimumSize(QtCore.QSize(40, 0))
self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_4.setObjectName("line_4")
self.horizontalLayout_2.addWidget(self.line_4)
self.gridLayout_4 = QtWidgets.QGridLayout()
self.gridLayout_4.setObjectName("gridLayout_4")
self.pushButton_position1 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_position1.sizePolicy().hasHeightForWidth())
self.pushButton_position1.setSizePolicy(sizePolicy)
self.pushButton_position1.setMinimumSize(QtCore.QSize(120, 40))
self.pushButton_position1.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_position1.setFont(font)
self.pushButton_position1.setStyleSheet("QPushButton::checked {\n"
" background: rgb(224,238,249);\n"
" border: 1px solid rgb(0,120,212);\n"
" border-radius: 3px;\n"
"}")
self.pushButton_position1.setCheckable(True)
self.pushButton_position1.setChecked(True)
self.pushButton_position1.setAutoExclusive(True)
self.pushButton_position1.setObjectName("pushButton_position1")
self.gridLayout_4.addWidget(self.pushButton_position1, 0, 0, 1, 1)
self.pushButton_position4 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_position4.sizePolicy().hasHeightForWidth())
self.pushButton_position4.setSizePolicy(sizePolicy)
self.pushButton_position4.setMinimumSize(QtCore.QSize(120, 40))
self.pushButton_position4.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_position4.setFont(font)
self.pushButton_position4.setStyleSheet("QPushButton::checked {\n"
" background: rgb(224,238,249);\n"
" border: 1px solid rgb(0,120,212);\n"
" border-radius: 3px;\n"
"}")
self.pushButton_position4.setCheckable(True)
self.pushButton_position4.setChecked(False)
self.pushButton_position4.setAutoExclusive(True)
self.pushButton_position4.setObjectName("pushButton_position4")
self.gridLayout_4.addWidget(self.pushButton_position4, 3, 0, 1, 1)
self.comboBox_color1 = QtWidgets.QComboBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBox_color1.sizePolicy().hasHeightForWidth())
self.comboBox_color1.setSizePolicy(sizePolicy)
self.comboBox_color1.setMinimumSize(QtCore.QSize(130, 40))
self.comboBox_color1.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.comboBox_color1.setFont(font)
self.comboBox_color1.setLayoutDirection(QtCore.Qt.LeftToRight)
self.comboBox_color1.setEditable(True)
self.comboBox_color1.setMaxVisibleItems(8)
self.comboBox_color1.setMaxCount(2147483647)
self.comboBox_color1.setInsertPolicy(QtWidgets.QComboBox.InsertAtBottom)
self.comboBox_color1.setObjectName("comboBox_color1")
self.comboBox_color1.addItem("")
self.comboBox_color1.addItem("")
self.comboBox_color1.addItem("")
self.comboBox_color1.addItem("")
self.comboBox_color1.addItem("")
self.gridLayout_4.addWidget(self.comboBox_color1, 0, 1, 1, 1)
self.pushButton_position2 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_position2.sizePolicy().hasHeightForWidth())
self.pushButton_position2.setSizePolicy(sizePolicy)
self.pushButton_position2.setMinimumSize(QtCore.QSize(120, 40))
self.pushButton_position2.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.pushButton_position2.setFont(font)
self.pushButton_position2.setStyleSheet("QPushButton::checked {\n"
" background: rgb(224,238,249);\n"
" border: 1px solid rgb(0,120,212);\n"
" border-radius: 3px;\n"
"}")
self.pushButton_position2.setCheckable(True)