Code cleaning
This commit is contained in:
		
							
								
								
									
										37
									
								
								gui.py
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								gui.py
									
									
									
									
									
								
							| @@ -299,3 +299,40 @@ if __name__ == '__main__': | ||||
|     ex = MainWin() | ||||
|     sys.exit(app.exec_()) | ||||
|  | ||||
|  | ||||
| # #!/usr/bin/python3 | ||||
| # # -*- coding: utf-8 -*- | ||||
| # | ||||
| # import sys | ||||
| # from PyQt5.QtCore import Qt | ||||
| # from PyQt5.QtGui import QIcon | ||||
| # from PyQt5.QtWidgets import * | ||||
| # | ||||
| # def main(): | ||||
| #     app = QApplication(sys.argv) | ||||
| #     table = QTableWidget() | ||||
| #     tableItem = QTableWidgetItem() | ||||
| # | ||||
| #     table.setWindowTitle("Set QWidget for Entire QTableWidget Column") | ||||
| #     table.resize(400, 250) | ||||
| #     table.setRowCount(4) | ||||
| #     table.setColumnCount(3) | ||||
| # | ||||
| #     table.setHorizontalHeaderLabels(("HEADER 1;HEADER 2;HEADER 3;HEADER 4").split(";")) | ||||
| # | ||||
| #     table.setItem(0, 0, QTableWidgetItem("ITEM 1_1")) | ||||
| # | ||||
| #     # Add Widget to the rightmost Element of First Row | ||||
| #     table.setItem(0, 2, tableItem) | ||||
| # | ||||
| #     # Add QPushButton to the rightmost QTableWidgetItem on first row | ||||
| #     table.setCellWidget(0, 2, QPushButton("Cell Widget")); | ||||
| # | ||||
| #     # Span Right-Most Item of First Row Here | ||||
| #     table.setSpan(0, 2, table.rowCount(), 1); | ||||
| #     table.show() | ||||
| #     return app.exec_() | ||||
| # | ||||
| # | ||||
| # if __name__ == '__main__': | ||||
| #     main() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey Kalinin
					Sergey Kalinin