Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. class MainWindow(QtWidgets.QDialog):
  2.     def __init__(self):
  3.        super(MainWindow, self).__init__()
  4.        self.setWindowTitle("My own MainWindow")
  5.  
  6.        self.fileDialog = QtWidgets.QFileDialog(self)
  7.        self.fileDialog.setWindowFlags(Qt.Widget)
  8.  
  9.        self.confirmAction = QtWidgets.QPushButton("Press me", self)
  10.  
  11.        mainLayout = QtWidgets.QHBoxLayout()
  12.  
  13.        mainLayout.addWidget(self.fileDialog)
  14.        mainLayout.addWidget(self.confirmAction)
  15.        self.setLayout(mainLayout)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement