forked from pythonguis/pythonguis-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.py
740 lines (733 loc) · 44.1 KB
/
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(706, 556)
self.centralWidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralWidget.sizePolicy().hasHeightForWidth())
self.centralWidget.setSizePolicy(sizePolicy)
self.centralWidget.setObjectName("centralWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralWidget)
self.verticalLayout.setContentsMargins(11, 11, 11, 11)
self.verticalLayout.setSpacing(6)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout.setSpacing(6)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setSpacing(6)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.widget = QtWidgets.QWidget(self.centralWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
self.widget.setSizePolicy(sizePolicy)
self.widget.setObjectName("widget")
self.gridLayout = QtWidgets.QGridLayout(self.widget)
self.gridLayout.setContentsMargins(11, 11, 11, 11)
self.gridLayout.setSpacing(15)
self.gridLayout.setObjectName("gridLayout")
self.rectButton = QtWidgets.QPushButton(self.widget)
self.rectButton.setMinimumSize(QtCore.QSize(30, 30))
self.rectButton.setMaximumSize(QtCore.QSize(30, 30))
self.rectButton.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/layer-shape.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.rectButton.setIcon(icon)
self.rectButton.setCheckable(True)
self.rectButton.setObjectName("rectButton")
self.gridLayout.addWidget(self.rectButton, 6, 0, 1, 1)
self.polylineButton = QtWidgets.QPushButton(self.widget)
self.polylineButton.setMinimumSize(QtCore.QSize(30, 30))
self.polylineButton.setMaximumSize(QtCore.QSize(30, 30))
self.polylineButton.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/layer-shape-polyline.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.polylineButton.setIcon(icon1)
self.polylineButton.setCheckable(True)
self.polylineButton.setObjectName("polylineButton")
self.gridLayout.addWidget(self.polylineButton, 5, 1, 1, 1)
self.selectrectButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.selectrectButton.sizePolicy().hasHeightForWidth())
self.selectrectButton.setSizePolicy(sizePolicy)
self.selectrectButton.setMinimumSize(QtCore.QSize(30, 30))
self.selectrectButton.setMaximumSize(QtCore.QSize(30, 30))
self.selectrectButton.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icons/selection.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.selectrectButton.setIcon(icon2)
self.selectrectButton.setCheckable(True)
self.selectrectButton.setObjectName("selectrectButton")
self.gridLayout.addWidget(self.selectrectButton, 0, 1, 1, 1)
self.eraserButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.eraserButton.sizePolicy().hasHeightForWidth())
self.eraserButton.setSizePolicy(sizePolicy)
self.eraserButton.setMinimumSize(QtCore.QSize(30, 30))
self.eraserButton.setMaximumSize(QtCore.QSize(30, 30))
self.eraserButton.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icons/eraser.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.eraserButton.setIcon(icon3)
self.eraserButton.setCheckable(True)
self.eraserButton.setObjectName("eraserButton")
self.gridLayout.addWidget(self.eraserButton, 1, 0, 1, 1)
self.stampButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stampButton.sizePolicy().hasHeightForWidth())
self.stampButton.setSizePolicy(sizePolicy)
self.stampButton.setMinimumSize(QtCore.QSize(30, 30))
self.stampButton.setMaximumSize(QtCore.QSize(30, 30))
self.stampButton.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icons/cake.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.stampButton.setIcon(icon4)
self.stampButton.setCheckable(True)
self.stampButton.setObjectName("stampButton")
self.gridLayout.addWidget(self.stampButton, 2, 1, 1, 1)
self.dropperButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dropperButton.sizePolicy().hasHeightForWidth())
self.dropperButton.setSizePolicy(sizePolicy)
self.dropperButton.setMinimumSize(QtCore.QSize(30, 30))
self.dropperButton.setMaximumSize(QtCore.QSize(30, 30))
self.dropperButton.setText("")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icons/pipette.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.dropperButton.setIcon(icon5)
self.dropperButton.setCheckable(True)
self.dropperButton.setObjectName("dropperButton")
self.gridLayout.addWidget(self.dropperButton, 2, 0, 1, 1)
self.selectpolyButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.selectpolyButton.sizePolicy().hasHeightForWidth())
self.selectpolyButton.setSizePolicy(sizePolicy)
self.selectpolyButton.setMinimumSize(QtCore.QSize(30, 30))
self.selectpolyButton.setMaximumSize(QtCore.QSize(30, 30))
self.selectpolyButton.setText("")
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/icons/selection-poly.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.selectpolyButton.setIcon(icon6)
self.selectpolyButton.setCheckable(True)
self.selectpolyButton.setObjectName("selectpolyButton")
self.gridLayout.addWidget(self.selectpolyButton, 0, 0, 1, 1)
self.brushButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.brushButton.sizePolicy().hasHeightForWidth())
self.brushButton.setSizePolicy(sizePolicy)
self.brushButton.setMinimumSize(QtCore.QSize(30, 30))
self.brushButton.setMaximumSize(QtCore.QSize(30, 30))
self.brushButton.setText("")
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/icons/paint-brush.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.brushButton.setIcon(icon7)
self.brushButton.setCheckable(True)
self.brushButton.setObjectName("brushButton")
self.gridLayout.addWidget(self.brushButton, 3, 1, 1, 1)
self.penButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.penButton.sizePolicy().hasHeightForWidth())
self.penButton.setSizePolicy(sizePolicy)
self.penButton.setMinimumSize(QtCore.QSize(30, 30))
self.penButton.setMaximumSize(QtCore.QSize(30, 30))
self.penButton.setText("")
icon8 = QtGui.QIcon()
icon8.addPixmap(QtGui.QPixmap(":/icons/pencil.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.penButton.setIcon(icon8)
self.penButton.setCheckable(True)
self.penButton.setObjectName("penButton")
self.gridLayout.addWidget(self.penButton, 3, 0, 1, 1)
self.fillButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.fillButton.sizePolicy().hasHeightForWidth())
self.fillButton.setSizePolicy(sizePolicy)
self.fillButton.setMinimumSize(QtCore.QSize(30, 30))
self.fillButton.setMaximumSize(QtCore.QSize(30, 30))
self.fillButton.setText("")
icon9 = QtGui.QIcon()
icon9.addPixmap(QtGui.QPixmap(":/icons/paint-can.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.fillButton.setIcon(icon9)
self.fillButton.setCheckable(True)
self.fillButton.setObjectName("fillButton")
self.gridLayout.addWidget(self.fillButton, 1, 1, 1, 1)
self.textButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textButton.sizePolicy().hasHeightForWidth())
self.textButton.setSizePolicy(sizePolicy)
self.textButton.setMinimumSize(QtCore.QSize(30, 30))
self.textButton.setMaximumSize(QtCore.QSize(30, 30))
self.textButton.setText("")
icon10 = QtGui.QIcon()
icon10.addPixmap(QtGui.QPixmap(":/icons/edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.textButton.setIcon(icon10)
self.textButton.setCheckable(True)
self.textButton.setObjectName("textButton")
self.gridLayout.addWidget(self.textButton, 4, 1, 1, 1)
self.polygonButton = QtWidgets.QPushButton(self.widget)
self.polygonButton.setMinimumSize(QtCore.QSize(30, 30))
self.polygonButton.setMaximumSize(QtCore.QSize(30, 30))
self.polygonButton.setText("")
icon11 = QtGui.QIcon()
icon11.addPixmap(QtGui.QPixmap(":/icons/layer-shape-polygon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.polygonButton.setIcon(icon11)
self.polygonButton.setCheckable(True)
self.polygonButton.setObjectName("polygonButton")
self.gridLayout.addWidget(self.polygonButton, 6, 1, 1, 1)
self.roundrectButton = QtWidgets.QPushButton(self.widget)
self.roundrectButton.setMinimumSize(QtCore.QSize(30, 30))
self.roundrectButton.setMaximumSize(QtCore.QSize(30, 30))
self.roundrectButton.setText("")
icon12 = QtGui.QIcon()
icon12.addPixmap(QtGui.QPixmap(":/icons/layer-shape-round.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.roundrectButton.setIcon(icon12)
self.roundrectButton.setCheckable(True)
self.roundrectButton.setObjectName("roundrectButton")
self.gridLayout.addWidget(self.roundrectButton, 7, 1, 1, 1)
self.ellipseButton = QtWidgets.QPushButton(self.widget)
self.ellipseButton.setMinimumSize(QtCore.QSize(30, 30))
self.ellipseButton.setMaximumSize(QtCore.QSize(30, 30))
self.ellipseButton.setText("")
icon13 = QtGui.QIcon()
icon13.addPixmap(QtGui.QPixmap(":/icons/layer-shape-ellipse.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.ellipseButton.setIcon(icon13)
self.ellipseButton.setCheckable(True)
self.ellipseButton.setObjectName("ellipseButton")
self.gridLayout.addWidget(self.ellipseButton, 7, 0, 1, 1)
self.lineButton = QtWidgets.QPushButton(self.widget)
self.lineButton.setMinimumSize(QtCore.QSize(30, 30))
self.lineButton.setMaximumSize(QtCore.QSize(30, 30))
self.lineButton.setText("")
icon14 = QtGui.QIcon()
icon14.addPixmap(QtGui.QPixmap(":/icons/layer-shape-line.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.lineButton.setIcon(icon14)
self.lineButton.setCheckable(True)
self.lineButton.setObjectName("lineButton")
self.gridLayout.addWidget(self.lineButton, 5, 0, 1, 1)
self.sprayButton = QtWidgets.QPushButton(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.sprayButton.sizePolicy().hasHeightForWidth())
self.sprayButton.setSizePolicy(sizePolicy)
self.sprayButton.setMinimumSize(QtCore.QSize(30, 30))
self.sprayButton.setMaximumSize(QtCore.QSize(30, 30))
self.sprayButton.setText("")
icon15 = QtGui.QIcon()
icon15.addPixmap(QtGui.QPixmap(":/icons/spray.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.sprayButton.setIcon(icon15)
self.sprayButton.setCheckable(True)
self.sprayButton.setFlat(False)
self.sprayButton.setObjectName("sprayButton")
self.gridLayout.addWidget(self.sprayButton, 4, 0, 1, 1)
self.verticalLayout_2.addWidget(self.widget)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.canvas = QtWidgets.QLabel(self.centralWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.canvas.sizePolicy().hasHeightForWidth())
self.canvas.setSizePolicy(sizePolicy)
self.canvas.setText("")
self.canvas.setObjectName("canvas")
self.horizontalLayout.addWidget(self.canvas)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(6)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.widget_3 = QtWidgets.QWidget(self.centralWidget)
self.widget_3.setMinimumSize(QtCore.QSize(78, 0))
self.widget_3.setMaximumSize(QtCore.QSize(78, 16777215))
self.widget_3.setObjectName("widget_3")
self.secondaryButton = QtWidgets.QPushButton(self.widget_3)
self.secondaryButton.setGeometry(QtCore.QRect(30, 10, 40, 40))
self.secondaryButton.setMinimumSize(QtCore.QSize(40, 40))
self.secondaryButton.setMaximumSize(QtCore.QSize(40, 40))
self.secondaryButton.setText("")
self.secondaryButton.setObjectName("secondaryButton")
self.primaryButton = QtWidgets.QPushButton(self.widget_3)
self.primaryButton.setGeometry(QtCore.QRect(10, 0, 40, 40))
self.primaryButton.setMinimumSize(QtCore.QSize(40, 40))
self.primaryButton.setMaximumSize(QtCore.QSize(40, 40))
self.primaryButton.setText("")
self.primaryButton.setObjectName("primaryButton")
self.horizontalLayout_2.addWidget(self.widget_3)
self.widget_2 = QtWidgets.QWidget(self.centralWidget)
self.widget_2.setObjectName("widget_2")
self.gridLayout_2 = QtWidgets.QGridLayout(self.widget_2)
self.gridLayout_2.setContentsMargins(15, 0, 15, 15)
self.gridLayout_2.setSpacing(15)
self.gridLayout_2.setObjectName("gridLayout_2")
self.colorButton_11 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_11.sizePolicy().hasHeightForWidth())
self.colorButton_11.setSizePolicy(sizePolicy)
self.colorButton_11.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_11.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_11.setText("")
self.colorButton_11.setObjectName("colorButton_11")
self.gridLayout_2.addWidget(self.colorButton_11, 0, 10, 1, 1)
self.colorButton_7 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_7.sizePolicy().hasHeightForWidth())
self.colorButton_7.setSizePolicy(sizePolicy)
self.colorButton_7.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_7.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_7.setText("")
self.colorButton_7.setObjectName("colorButton_7")
self.gridLayout_2.addWidget(self.colorButton_7, 0, 6, 1, 1)
self.colorButton_9 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_9.sizePolicy().hasHeightForWidth())
self.colorButton_9.setSizePolicy(sizePolicy)
self.colorButton_9.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_9.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_9.setText("")
self.colorButton_9.setObjectName("colorButton_9")
self.gridLayout_2.addWidget(self.colorButton_9, 0, 8, 1, 1)
self.colorButton_10 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_10.sizePolicy().hasHeightForWidth())
self.colorButton_10.setSizePolicy(sizePolicy)
self.colorButton_10.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_10.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_10.setText("")
self.colorButton_10.setObjectName("colorButton_10")
self.gridLayout_2.addWidget(self.colorButton_10, 0, 9, 1, 1)
self.colorButton_23 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_23.sizePolicy().hasHeightForWidth())
self.colorButton_23.setSizePolicy(sizePolicy)
self.colorButton_23.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_23.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_23.setText("")
self.colorButton_23.setObjectName("colorButton_23")
self.gridLayout_2.addWidget(self.colorButton_23, 1, 8, 1, 1)
self.colorButton_18 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_18.sizePolicy().hasHeightForWidth())
self.colorButton_18.setSizePolicy(sizePolicy)
self.colorButton_18.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_18.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_18.setText("")
self.colorButton_18.setObjectName("colorButton_18")
self.gridLayout_2.addWidget(self.colorButton_18, 1, 3, 1, 1)
self.colorButton_20 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_20.sizePolicy().hasHeightForWidth())
self.colorButton_20.setSizePolicy(sizePolicy)
self.colorButton_20.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_20.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_20.setText("")
self.colorButton_20.setObjectName("colorButton_20")
self.gridLayout_2.addWidget(self.colorButton_20, 1, 5, 1, 1)
self.colorButton_6 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_6.sizePolicy().hasHeightForWidth())
self.colorButton_6.setSizePolicy(sizePolicy)
self.colorButton_6.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_6.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_6.setText("")
self.colorButton_6.setObjectName("colorButton_6")
self.gridLayout_2.addWidget(self.colorButton_6, 0, 5, 1, 1)
self.colorButton_3 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_3.sizePolicy().hasHeightForWidth())
self.colorButton_3.setSizePolicy(sizePolicy)
self.colorButton_3.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_3.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_3.setText("")
self.colorButton_3.setObjectName("colorButton_3")
self.gridLayout_2.addWidget(self.colorButton_3, 0, 2, 1, 1)
self.colorButton_24 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_24.sizePolicy().hasHeightForWidth())
self.colorButton_24.setSizePolicy(sizePolicy)
self.colorButton_24.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_24.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_24.setText("")
self.colorButton_24.setObjectName("colorButton_24")
self.gridLayout_2.addWidget(self.colorButton_24, 1, 9, 1, 1)
self.colorButton_17 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_17.sizePolicy().hasHeightForWidth())
self.colorButton_17.setSizePolicy(sizePolicy)
self.colorButton_17.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_17.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_17.setText("")
self.colorButton_17.setObjectName("colorButton_17")
self.gridLayout_2.addWidget(self.colorButton_17, 1, 2, 1, 1)
self.colorButton_1 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_1.sizePolicy().hasHeightForWidth())
self.colorButton_1.setSizePolicy(sizePolicy)
self.colorButton_1.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_1.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_1.setStyleSheet("")
self.colorButton_1.setText("")
self.colorButton_1.setObjectName("colorButton_1")
self.gridLayout_2.addWidget(self.colorButton_1, 0, 0, 1, 1)
self.colorButton_8 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_8.sizePolicy().hasHeightForWidth())
self.colorButton_8.setSizePolicy(sizePolicy)
self.colorButton_8.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_8.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_8.setText("")
self.colorButton_8.setObjectName("colorButton_8")
self.gridLayout_2.addWidget(self.colorButton_8, 0, 7, 1, 1)
self.colorButton_27 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_27.sizePolicy().hasHeightForWidth())
self.colorButton_27.setSizePolicy(sizePolicy)
self.colorButton_27.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_27.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_27.setText("")
self.colorButton_27.setObjectName("colorButton_27")
self.gridLayout_2.addWidget(self.colorButton_27, 1, 12, 1, 1)
self.colorButton_22 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_22.sizePolicy().hasHeightForWidth())
self.colorButton_22.setSizePolicy(sizePolicy)
self.colorButton_22.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_22.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_22.setText("")
self.colorButton_22.setObjectName("colorButton_22")
self.gridLayout_2.addWidget(self.colorButton_22, 1, 7, 1, 1)
self.colorButton_15 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_15.sizePolicy().hasHeightForWidth())
self.colorButton_15.setSizePolicy(sizePolicy)
self.colorButton_15.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_15.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_15.setText("")
self.colorButton_15.setObjectName("colorButton_15")
self.gridLayout_2.addWidget(self.colorButton_15, 1, 0, 1, 1)
self.colorButton_5 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_5.sizePolicy().hasHeightForWidth())
self.colorButton_5.setSizePolicy(sizePolicy)
self.colorButton_5.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_5.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_5.setText("")
self.colorButton_5.setObjectName("colorButton_5")
self.gridLayout_2.addWidget(self.colorButton_5, 0, 4, 1, 1)
self.colorButton_2 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_2.sizePolicy().hasHeightForWidth())
self.colorButton_2.setSizePolicy(sizePolicy)
self.colorButton_2.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_2.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_2.setText("")
self.colorButton_2.setObjectName("colorButton_2")
self.gridLayout_2.addWidget(self.colorButton_2, 0, 1, 1, 1)
self.colorButton_16 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_16.sizePolicy().hasHeightForWidth())
self.colorButton_16.setSizePolicy(sizePolicy)
self.colorButton_16.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_16.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_16.setText("")
self.colorButton_16.setObjectName("colorButton_16")
self.gridLayout_2.addWidget(self.colorButton_16, 1, 1, 1, 1)
self.colorButton_14 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_14.sizePolicy().hasHeightForWidth())
self.colorButton_14.setSizePolicy(sizePolicy)
self.colorButton_14.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_14.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_14.setText("")
self.colorButton_14.setObjectName("colorButton_14")
self.gridLayout_2.addWidget(self.colorButton_14, 0, 13, 1, 1)
self.colorButton_4 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_4.sizePolicy().hasHeightForWidth())
self.colorButton_4.setSizePolicy(sizePolicy)
self.colorButton_4.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_4.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_4.setText("")
self.colorButton_4.setObjectName("colorButton_4")
self.gridLayout_2.addWidget(self.colorButton_4, 0, 3, 1, 1)
self.colorButton_21 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_21.sizePolicy().hasHeightForWidth())
self.colorButton_21.setSizePolicy(sizePolicy)
self.colorButton_21.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_21.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_21.setText("")
self.colorButton_21.setObjectName("colorButton_21")
self.gridLayout_2.addWidget(self.colorButton_21, 1, 6, 1, 1)
self.colorButton_25 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_25.sizePolicy().hasHeightForWidth())
self.colorButton_25.setSizePolicy(sizePolicy)
self.colorButton_25.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_25.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_25.setText("")
self.colorButton_25.setObjectName("colorButton_25")
self.gridLayout_2.addWidget(self.colorButton_25, 1, 10, 1, 1)
self.colorButton_12 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_12.sizePolicy().hasHeightForWidth())
self.colorButton_12.setSizePolicy(sizePolicy)
self.colorButton_12.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_12.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_12.setText("")
self.colorButton_12.setObjectName("colorButton_12")
self.gridLayout_2.addWidget(self.colorButton_12, 0, 11, 1, 1)
self.colorButton_19 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_19.sizePolicy().hasHeightForWidth())
self.colorButton_19.setSizePolicy(sizePolicy)
self.colorButton_19.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_19.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_19.setText("")
self.colorButton_19.setObjectName("colorButton_19")
self.gridLayout_2.addWidget(self.colorButton_19, 1, 4, 1, 1)
self.colorButton_13 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_13.sizePolicy().hasHeightForWidth())
self.colorButton_13.setSizePolicy(sizePolicy)
self.colorButton_13.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_13.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_13.setText("")
self.colorButton_13.setObjectName("colorButton_13")
self.gridLayout_2.addWidget(self.colorButton_13, 0, 12, 1, 1)
self.colorButton_26 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_26.sizePolicy().hasHeightForWidth())
self.colorButton_26.setSizePolicy(sizePolicy)
self.colorButton_26.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_26.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_26.setText("")
self.colorButton_26.setObjectName("colorButton_26")
self.gridLayout_2.addWidget(self.colorButton_26, 1, 11, 1, 1)
self.colorButton_28 = QtWidgets.QPushButton(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.colorButton_28.sizePolicy().hasHeightForWidth())
self.colorButton_28.setSizePolicy(sizePolicy)
self.colorButton_28.setMinimumSize(QtCore.QSize(20, 20))
self.colorButton_28.setMaximumSize(QtCore.QSize(20, 13))
self.colorButton_28.setText("")
self.colorButton_28.setObjectName("colorButton_28")
self.gridLayout_2.addWidget(self.colorButton_28, 1, 13, 1, 1)
self.horizontalLayout_2.addWidget(self.widget_2)
self.stampnextButton = QtWidgets.QPushButton(self.centralWidget)
self.stampnextButton.setMinimumSize(QtCore.QSize(78, 55))
self.stampnextButton.setMaximumSize(QtCore.QSize(78, 55))
self.stampnextButton.setText("")
self.stampnextButton.setIconSize(QtCore.QSize(80, 50))
self.stampnextButton.setObjectName("stampnextButton")
self.horizontalLayout_2.addWidget(self.stampnextButton)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.verticalLayout.addLayout(self.horizontalLayout_2)
MainWindow.setCentralWidget(self.centralWidget)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 706, 26))
self.menuBar.setObjectName("menuBar")
self.menuFIle = QtWidgets.QMenu(self.menuBar)
self.menuFIle.setObjectName("menuFIle")
self.menuEdit = QtWidgets.QMenu(self.menuBar)
self.menuEdit.setObjectName("menuEdit")
self.menuImage = QtWidgets.QMenu(self.menuBar)
self.menuImage.setObjectName("menuImage")
self.menuHelp = QtWidgets.QMenu(self.menuBar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menuBar)
self.statusBar = QtWidgets.QStatusBar(MainWindow)
self.statusBar.setObjectName("statusBar")
MainWindow.setStatusBar(self.statusBar)
self.fileToolbar = QtWidgets.QToolBar(MainWindow)
self.fileToolbar.setIconSize(QtCore.QSize(16, 16))
self.fileToolbar.setObjectName("fileToolbar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.fileToolbar)
self.drawingToolbar = QtWidgets.QToolBar(MainWindow)
self.drawingToolbar.setIconSize(QtCore.QSize(16, 16))
self.drawingToolbar.setObjectName("drawingToolbar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.drawingToolbar)
self.fontToolbar = QtWidgets.QToolBar(MainWindow)
self.fontToolbar.setIconSize(QtCore.QSize(16, 16))
self.fontToolbar.setObjectName("fontToolbar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.fontToolbar)
self.actionCopy = QtWidgets.QAction(MainWindow)
self.actionCopy.setObjectName("actionCopy")
self.actionClearImage = QtWidgets.QAction(MainWindow)
self.actionClearImage.setObjectName("actionClearImage")
self.actionOpenImage = QtWidgets.QAction(MainWindow)
icon16 = QtGui.QIcon()
icon16.addPixmap(QtGui.QPixmap(":/icons/blue-folder-open-image.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionOpenImage.setIcon(icon16)
self.actionOpenImage.setObjectName("actionOpenImage")
self.actionSaveImage = QtWidgets.QAction(MainWindow)
icon17 = QtGui.QIcon()
icon17.addPixmap(QtGui.QPixmap(":/icons/disk.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionSaveImage.setIcon(icon17)
self.actionSaveImage.setObjectName("actionSaveImage")
self.actionInvertColors = QtWidgets.QAction(MainWindow)
self.actionInvertColors.setObjectName("actionInvertColors")
self.actionFlipHorizontal = QtWidgets.QAction(MainWindow)
self.actionFlipHorizontal.setObjectName("actionFlipHorizontal")
self.actionFlipVertical = QtWidgets.QAction(MainWindow)
self.actionFlipVertical.setObjectName("actionFlipVertical")
self.actionNewImage = QtWidgets.QAction(MainWindow)
icon18 = QtGui.QIcon()
icon18.addPixmap(QtGui.QPixmap(":/icons/document-image.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionNewImage.setIcon(icon18)
self.actionNewImage.setObjectName("actionNewImage")
self.actionBold = QtWidgets.QAction(MainWindow)
self.actionBold.setCheckable(True)
icon19 = QtGui.QIcon()
icon19.addPixmap(QtGui.QPixmap(":/icons/edit-bold.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionBold.setIcon(icon19)
self.actionBold.setObjectName("actionBold")
self.actionItalic = QtWidgets.QAction(MainWindow)
self.actionItalic.setCheckable(True)
icon20 = QtGui.QIcon()
icon20.addPixmap(QtGui.QPixmap(":/icons/edit-italic.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionItalic.setIcon(icon20)
self.actionItalic.setObjectName("actionItalic")
self.actionUnderline = QtWidgets.QAction(MainWindow)
self.actionUnderline.setCheckable(True)
icon21 = QtGui.QIcon()
icon21.addPixmap(QtGui.QPixmap(":/icons/edit-underline.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionUnderline.setIcon(icon21)
self.actionUnderline.setObjectName("actionUnderline")
self.actionFillShapes = QtWidgets.QAction(MainWindow)
self.actionFillShapes.setCheckable(True)
icon22 = QtGui.QIcon()
icon22.addPixmap(QtGui.QPixmap(":/icons/paint-can-color.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionFillShapes.setIcon(icon22)
self.actionFillShapes.setObjectName("actionFillShapes")
self.menuFIle.addAction(self.actionNewImage)
self.menuFIle.addAction(self.actionOpenImage)
self.menuFIle.addAction(self.actionSaveImage)
self.menuEdit.addAction(self.actionCopy)
self.menuEdit.addSeparator()
self.menuEdit.addAction(self.actionClearImage)
self.menuImage.addAction(self.actionInvertColors)
self.menuImage.addSeparator()
self.menuImage.addAction(self.actionFlipHorizontal)
self.menuImage.addAction(self.actionFlipVertical)
self.menuBar.addAction(self.menuFIle.menuAction())
self.menuBar.addAction(self.menuEdit.menuAction())
self.menuBar.addAction(self.menuImage.menuAction())
self.menuBar.addAction(self.menuHelp.menuAction())
self.fileToolbar.addAction(self.actionNewImage)
self.fileToolbar.addAction(self.actionOpenImage)
self.fileToolbar.addAction(self.actionSaveImage)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Piecasso"))
self.menuFIle.setTitle(_translate("MainWindow", "FIle"))
self.menuEdit.setTitle(_translate("MainWindow", "Edit"))
self.menuImage.setTitle(_translate("MainWindow", "Image"))
self.menuHelp.setTitle(_translate("MainWindow", "Help"))
self.fileToolbar.setWindowTitle(_translate("MainWindow", "toolBar"))
self.drawingToolbar.setWindowTitle(_translate("MainWindow", "toolBar"))
self.fontToolbar.setWindowTitle(_translate("MainWindow", "toolBar"))
self.actionCopy.setText(_translate("MainWindow", "Copy"))
self.actionCopy.setShortcut(_translate("MainWindow", "Ctrl+C"))
self.actionClearImage.setText(_translate("MainWindow", "Clear Image"))
self.actionOpenImage.setText(_translate("MainWindow", "Open Image..."))
self.actionSaveImage.setText(_translate("MainWindow", "Save Image As..."))
self.actionInvertColors.setText(_translate("MainWindow", "Invert Colors"))
self.actionFlipHorizontal.setText(_translate("MainWindow", "Flip Horizontal"))
self.actionFlipVertical.setText(_translate("MainWindow", "Flip Vertical"))
self.actionNewImage.setText(_translate("MainWindow", "New Image"))
self.actionBold.setText(_translate("MainWindow", "Bold"))
self.actionBold.setShortcut(_translate("MainWindow", "Ctrl+B"))
self.actionItalic.setText(_translate("MainWindow", "Italic"))
self.actionItalic.setShortcut(_translate("MainWindow", "Ctrl+I"))
self.actionUnderline.setText(_translate("MainWindow", "Underline"))
self.actionFillShapes.setText(_translate("MainWindow", "Fill Shapes?"))
import resources_rc