removed browse button from drop zone

This commit is contained in:
Jakub Trllo 2019-04-17 09:54:29 +02:00
parent b2b4c031c1
commit b3c15a16c9

View file

@ -12,19 +12,12 @@ class DropDataWidget(QtWidgets.QWidget):
layout = QtWidgets.QVBoxLayout(self)
bottomCenterAlignment = QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter
topCenterAlignment = QtCore.Qt.AlignTop | QtCore.Qt.AlignHCenter
CenterAlignment = QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter
self._label = QtWidgets.QLabel('Drop files here')
layout.addWidget(
self._label,
alignment=bottomCenterAlignment
)
self._browseButton = QtWidgets.QPushButton('Browse')
self._browseButton.setToolTip('Browse for file(s).')
layout.addWidget(
self._browseButton, alignment=topCenterAlignment
alignment=CenterAlignment
)
def paintEvent(self, event):