#!/usr/bin/env python3 from PyQt5.QtWidgets import QApplication,QWidget,QLabel,QPushButton,QVBoxLayout,QHBoxLayout,qApp class Window(QWidget): def __init__(self): super().__init__() self.setWindowTitle('Первый пример') self.move(100,100) self.button=QPushButton('E&xit') self.button2=QPushButton('&Change') self.hbox=QHBoxLayout() self.hbox.addStretch(1) self.hbox.addWidget(self.button) self.hbox.addStretch(1) self.hbox.addWidget(self.button2) self.label=QLabel('