top of page
Search
gortabogghour1989

Discord No Input Or Output Device Berump







Here is the code i am using (without the imports) import PySide.QtGui import PySide.QtCore import os class Example(QMainWindow): def __init__(self, parent=None): super(Example, self).__init__(parent) self.setWindowTitle("Window") self.setMinimumSize(500,300) self.setMaximumSize(1000,1000) self.setFont(QFont('Arial',12,True)) self.setObjectName('Example') self.make_borders() self.make_clear() def make_clear(self): self.lbl_message = QLabel('&Hello World') self.lbl_message.move(100,400) self.lbl_message.resize(600,200) def make_borders(self): self.line = QFrame(self) self.line.setGeometry(100, 400, 600, 20) self.line.setObjectName('line') self.setCentralWidget(self.line) app = QApplication(sys.argv) ex = Example() ex.show() sys.exit(app.exec_()) My output only has a white box and no label in the center of the box (where the label should be). What i have tried I have tried the following to no avail instructing my teacher to try this correcting the use of relative addresses like so: ensuring that my file extension in the code is.py changing the code to the following


Related links:

2 views0 comments

Comments


bottom of page