new method okToContinue written in order to prevent accidental dataloss
This commit is contained in:
		
							parent
							
								
									dc43a3520d
								
							
						
					
					
						commit
						ec1cc26b8c
					
				
							
								
								
									
										24
									
								
								QtPyLoT.py
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								QtPyLoT.py
									
									
									
									
									
								
							| @ -214,14 +214,19 @@ class MainWindow(QMainWindow): | |||||||
|         status.addPermanentWidget(self.eventLabel) |         status.addPermanentWidget(self.eventLabel) | ||||||
|         status.showMessage("Ready", 500) |         status.showMessage("Ready", 500) | ||||||
| 
 | 
 | ||||||
|         #statLayout = layoutStationButtons(self.getData(), self.getComponent()) | #       statLayout = layoutStationButtons(self.getData(), self.getComponent()) | ||||||
|         #dataLayout = self.getDataWidget() | #       dataLayout = self.getDataWidget() | ||||||
| 
 | 
 | ||||||
| #         maingrid = QGridLayout() | #       maingrid = QGridLayout() | ||||||
| #         maingrid.setSpacing(10) | #       maingrid.setSpacing(10) | ||||||
| #         maingrid.addLayout(statLayout, 0, 0) | #       maingrid.addLayout(statLayout, 0, 0) | ||||||
| #         maingrid.addWidget(dataLayout, 1, 0) | #       maingrid.addWidget(self.getDataWidget(), 0, 1) | ||||||
|         #self.setLayout(maingrid) | #       self.setLayout(maingrid) | ||||||
|  | 
 | ||||||
|  |     def okToContinue(self): | ||||||
|  |         if self.dirty: | ||||||
|  |             return self.saveData() | ||||||
|  |         return True | ||||||
| 
 | 
 | ||||||
|     def plotData(self): |     def plotData(self): | ||||||
|         pass #self.data.plotData(self.DataPlot) |         pass #self.data.plotData(self.DataPlot) | ||||||
| @ -273,9 +278,8 @@ class MainWindow(QMainWindow): | |||||||
|     def printEvent(self): |     def printEvent(self): | ||||||
|         pass |         pass | ||||||
| 
 | 
 | ||||||
|     def cleanUp(self): |     def closeEvent(self): | ||||||
|         self |         return self.saveData() | ||||||
|         return 0 |  | ||||||
| 
 | 
 | ||||||
|     def helpHelp(self): |     def helpHelp(self): | ||||||
|         if checkurl(): |         if checkurl(): | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user