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'
22#
33# Created by: PyQt6 UI code generator 6.5.2
44#
1212class Ui_Form (object ):
1313 def setupUi (self , Form ):
1414 Form .setObjectName ("Form" )
15- Form .resize (788 , 108 )
15+ Form .resize (788 , 93 )
1616 Form .setMinimumSize (QtCore .QSize (0 , 0 ))
1717 Form .setMaximumSize (QtCore .QSize (16777215 , 16777215 ))
1818 Form .setStyleSheet ("" )
@@ -27,6 +27,8 @@ def setupUi(self, Form):
2727 self .frame .setFrameShadow (QtWidgets .QFrame .Shadow .Raised )
2828 self .frame .setObjectName ("frame" )
2929 self .gridLayout_3 = QtWidgets .QGridLayout (self .frame )
30+ self .gridLayout_3 .setContentsMargins (0 , 6 , 0 , 0 )
31+ self .gridLayout_3 .setSpacing (0 )
3032 self .gridLayout_3 .setObjectName ("gridLayout_3" )
3133 spacerItem = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Policy .Expanding , QtWidgets .QSizePolicy .Policy .Minimum )
3234 self .gridLayout_3 .addItem (spacerItem , 0 , 0 , 1 , 1 )
@@ -51,11 +53,11 @@ def setupUi(self, Form):
5153 self .label .setMinimumSize (QtCore .QSize (40 , 25 ))
5254 self .label .setMaximumSize (QtCore .QSize (30 , 20 ))
5355 self .label .setText ("" )
54- self .label .setPixmap (QtGui .QPixmap ("icons/main-logo.png" ))
56+ self .label .setPixmap (QtGui .QPixmap (":/ icons/main-logo.png" ))
5557 self .label .setScaledContents (True )
5658 self .label .setObjectName ("label" )
5759 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 )
5961 self .gridLayout_4 .addItem (spacerItem1 , 1 , 0 , 1 , 1 )
6062 self .gridLayout_5 .addWidget (self .frame_2 , 0 , 0 , 1 , 1 )
6163 self .frame_4 = QtWidgets .QFrame (parent = self .frame_3 )
@@ -64,28 +66,28 @@ def setupUi(self, Form):
6466 self .frame_4 .setObjectName ("frame_4" )
6567 self .gridLayout = QtWidgets .QGridLayout (self .frame_4 )
6668 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 ))
7072 font = QtGui .QFont ()
7173 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 "
7678"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 )
8486 self .gridLayout_5 .addWidget (self .frame_4 , 0 , 1 , 1 , 1 )
8587 self .gridLayout_3 .addWidget (self .frame_3 , 0 , 1 , 1 , 1 )
8688 spacerItem2 = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Policy .Expanding , QtWidgets .QSizePolicy .Policy .Minimum )
8789 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 )
8991 self .gridLayout_3 .addItem (spacerItem3 , 1 , 1 , 1 , 1 )
9092 self .gridLayout_2 .addWidget (self .frame , 0 , 0 , 1 , 1 )
9193
@@ -95,3 +97,13 @@ def setupUi(self, Form):
9597 def retranslateUi (self , Form ):
9698 _translate = QtCore .QCoreApplication .translate
9799 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