#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import PyQt4.Qt as Qt
class BarPlotMainWindow(Qt.QMainWindow):
def __init__(self, parent=None):
Qt.QMainWindow.__init__(self, parent)
fr = Qt.QFrame()
button1 = Qt.QPushButton(u'Кнопка 1')
buttonLayout = Qt.QVBoxLayout()
buttonLayout.addWidget(button1)
buttonLayout.addStretch()
fr.setLayout(Qt.QHBoxLayout())
fr.layout().addLayout(buttonLayout)
widget1 = Qt.QWidget()
fr.layout().addWidget(widget1)
self.setCentralWidget(fr)
app = Qt.QApplication(sys.argv)
demo = BarPlotMainWindow()
demo.resize(1000, 500)
demo.show()
sys.exit(app.exec_())