1
- # Form implementation generated from reading ui file 'c:\Users\MD. SHAMIM\Documents\GitHub\Python-GUI-PyQt6\TestDemo-2\ output_widget.ui'
1
+ # Form implementation generated from reading ui file 'output_widget.ui'
2
2
#
3
3
# Created by: PyQt6 UI code generator 6.5.2
4
4
#
12
12
class Ui_Form (object ):
13
13
def setupUi (self , Form ):
14
14
Form .setObjectName ("Form" )
15
- Form .resize (788 , 108 )
15
+ Form .resize (788 , 93 )
16
16
Form .setMinimumSize (QtCore .QSize (0 , 0 ))
17
17
Form .setMaximumSize (QtCore .QSize (16777215 , 16777215 ))
18
18
Form .setStyleSheet ("" )
@@ -27,6 +27,8 @@ def setupUi(self, Form):
27
27
self .frame .setFrameShadow (QtWidgets .QFrame .Shadow .Raised )
28
28
self .frame .setObjectName ("frame" )
29
29
self .gridLayout_3 = QtWidgets .QGridLayout (self .frame )
30
+ self .gridLayout_3 .setContentsMargins (0 , 6 , 0 , 0 )
31
+ self .gridLayout_3 .setSpacing (0 )
30
32
self .gridLayout_3 .setObjectName ("gridLayout_3" )
31
33
spacerItem = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Policy .Expanding , QtWidgets .QSizePolicy .Policy .Minimum )
32
34
self .gridLayout_3 .addItem (spacerItem , 0 , 0 , 1 , 1 )
@@ -51,11 +53,11 @@ def setupUi(self, Form):
51
53
self .label .setMinimumSize (QtCore .QSize (40 , 25 ))
52
54
self .label .setMaximumSize (QtCore .QSize (30 , 20 ))
53
55
self .label .setText ("" )
54
- self .label .setPixmap (QtGui .QPixmap ("icons/main-logo.png" ))
56
+ self .label .setPixmap (QtGui .QPixmap (":/ icons/main-logo.png" ))
55
57
self .label .setScaledContents (True )
56
58
self .label .setObjectName ("label" )
57
59
self .gridLayout_4 .addWidget (self .label , 0 , 0 , 1 , 1 , QtCore .Qt .AlignmentFlag .AlignTop )
58
- spacerItem1 = QtWidgets .QSpacerItem (20 , 77 , QtWidgets .QSizePolicy .Policy .Minimum , QtWidgets .QSizePolicy .Policy .Preferred )
60
+ spacerItem1 = QtWidgets .QSpacerItem (20 , 0 , QtWidgets .QSizePolicy .Policy .Minimum , QtWidgets .QSizePolicy .Policy .Expanding )
59
61
self .gridLayout_4 .addItem (spacerItem1 , 1 , 0 , 1 , 1 )
60
62
self .gridLayout_5 .addWidget (self .frame_2 , 0 , 0 , 1 , 1 )
61
63
self .frame_4 = QtWidgets .QFrame (parent = self .frame_3 )
@@ -64,28 +66,28 @@ def setupUi(self, Form):
64
66
self .frame_4 .setObjectName ("frame_4" )
65
67
self .gridLayout = QtWidgets .QGridLayout (self .frame_4 )
66
68
self .gridLayout .setObjectName ("gridLayout" )
67
- self .label_2 = QtWidgets .QLabel (parent = self .frame_4 )
68
- self .label_2 .setMinimumSize (QtCore .QSize (600 , 0 ))
69
- self .label_2 .setMaximumSize (QtCore .QSize (16777215 , 16777215 ))
69
+ self .output_lable = QtWidgets .QLabel (parent = self .frame_4 )
70
+ self .output_lable .setMinimumSize (QtCore .QSize (600 , 0 ))
71
+ self .output_lable .setMaximumSize (QtCore .QSize (16777215 , 16777215 ))
70
72
font = QtGui .QFont ()
71
73
font .setPointSize (11 )
72
- self .label_2 .setFont (font )
73
- self .label_2 .setCursor (QtGui .QCursor (QtCore .Qt .CursorShape .IBeamCursor ))
74
- self .label_2 .setMouseTracking (False )
75
- self .label_2 .setStyleSheet ("border:none;\n "
74
+ self .output_lable .setFont (font )
75
+ self .output_lable .setCursor (QtGui .QCursor (QtCore .Qt .CursorShape .IBeamCursor ))
76
+ self .output_lable .setMouseTracking (False )
77
+ self .output_lable .setStyleSheet ("border:none;\n "
76
78
"color: #fff;" )
77
- self .label_2 .setInputMethodHints (QtCore .Qt .InputMethodHint .ImhMultiLine )
78
- self .label_2 .setText ("" )
79
- self .label_2 .setAlignment (QtCore .Qt .AlignmentFlag .AlignLeading | QtCore .Qt .AlignmentFlag .AlignLeft | QtCore .Qt .AlignmentFlag .AlignTop )
80
- self .label_2 .setWordWrap (True )
81
- self .label_2 .setTextInteractionFlags (QtCore .Qt .TextInteractionFlag .LinksAccessibleByKeyboard | QtCore .Qt .TextInteractionFlag .LinksAccessibleByMouse | QtCore .Qt .TextInteractionFlag .TextBrowserInteraction | QtCore .Qt .TextInteractionFlag .TextSelectableByKeyboard | QtCore .Qt .TextInteractionFlag .TextSelectableByMouse )
82
- self .label_2 .setObjectName ("label_2 " )
83
- self .gridLayout .addWidget (self .label_2 , 0 , 0 , 1 , 1 )
79
+ self .output_lable .setInputMethodHints (QtCore .Qt .InputMethodHint .ImhMultiLine )
80
+ self .output_lable .setText ("" )
81
+ self .output_lable .setAlignment (QtCore .Qt .AlignmentFlag .AlignLeading | QtCore .Qt .AlignmentFlag .AlignLeft | QtCore .Qt .AlignmentFlag .AlignTop )
82
+ self .output_lable .setWordWrap (True )
83
+ self .output_lable .setTextInteractionFlags (QtCore .Qt .TextInteractionFlag .LinksAccessibleByKeyboard | QtCore .Qt .TextInteractionFlag .LinksAccessibleByMouse | QtCore .Qt .TextInteractionFlag .TextBrowserInteraction | QtCore .Qt .TextInteractionFlag .TextSelectableByKeyboard | QtCore .Qt .TextInteractionFlag .TextSelectableByMouse )
84
+ self .output_lable .setObjectName ("output_lable " )
85
+ self .gridLayout .addWidget (self .output_lable , 0 , 0 , 1 , 1 )
84
86
self .gridLayout_5 .addWidget (self .frame_4 , 0 , 1 , 1 , 1 )
85
87
self .gridLayout_3 .addWidget (self .frame_3 , 0 , 1 , 1 , 1 )
86
88
spacerItem2 = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Policy .Expanding , QtWidgets .QSizePolicy .Policy .Minimum )
87
89
self .gridLayout_3 .addItem (spacerItem2 , 0 , 2 , 1 , 1 )
88
- spacerItem3 = QtWidgets .QSpacerItem (20 , 40 , QtWidgets .QSizePolicy .Policy .Minimum , QtWidgets .QSizePolicy .Policy .Expanding )
90
+ spacerItem3 = QtWidgets .QSpacerItem (20 , 10 , QtWidgets .QSizePolicy .Policy .Minimum , QtWidgets .QSizePolicy .Policy .Preferred )
89
91
self .gridLayout_3 .addItem (spacerItem3 , 1 , 1 , 1 , 1 )
90
92
self .gridLayout_2 .addWidget (self .frame , 0 , 0 , 1 , 1 )
91
93
@@ -95,3 +97,13 @@ def setupUi(self, Form):
95
97
def retranslateUi (self , Form ):
96
98
_translate = QtCore .QCoreApplication .translate
97
99
Form .setWindowTitle (_translate ("Form" , "Form" ))
100
+
101
+
102
+ if __name__ == "__main__" :
103
+ import sys
104
+ app = QtWidgets .QApplication (sys .argv )
105
+ Form = QtWidgets .QWidget ()
106
+ ui = Ui_Form ()
107
+ ui .setupUi (Form )
108
+ Form .show ()
109
+ sys .exit (app .exec ())
0 commit comments