Changeset e540cd2 in sasview for src/sas/qtgui/DroppableDataLoadWidget.py
- Timestamp:
- Jul 7, 2016 4:54:18 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0cd8612
- Parents:
- f0f309d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DroppableDataLoadWidget.py
r481ff26 re540cd2 16 16 self.setAcceptDrops(True) 17 17 self.communicator = guimanager.communicator() 18 flags = QtCore.Qt.CustomizeWindowHint | QtCore.Qt.WindowTitleHint | QtCore.Qt.WindowSystemMenuHint 19 self.setWindowFlags(flags) 18 20 19 21 def dragIsOK(self, event): … … 22 24 """ 23 25 # Analyze mime data 24 if event.mimeData().hasUrls() and self.currentIndex() == 0: 25 return True 26 else: 27 return False 26 return bool(event.mimeData().hasUrls() and self.currentIndex() == 0) 28 27 29 28 def dragEnterEvent(self, event): … … 61 60 event.ignore() 62 61 62 def closeEvent(self, event): 63 """ 64 Overwrite the close event - no close! 65 """ 66 event.ignore()
Note: See TracChangeset
for help on using the changeset viewer.