src/eric7/UI/PythonAstViewer.py

branch
eric7
changeset 10692
9becf9ca115c
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10691:d1a603a70f83 10692:9becf9ca115c
425 # 10 px extra for the range 425 # 10 px extra for the range
426 nodeSize = max(400, self.__astWidget.viewport().width() - rangeSize) 426 nodeSize = max(400, self.__astWidget.viewport().width() - rangeSize)
427 self.__astWidget.setColumnWidth(0, nodeSize) 427 self.__astWidget.setColumnWidth(0, nodeSize)
428 self.__astWidget.setColumnWidth(1, rangeSize) 428 self.__astWidget.setColumnWidth(1, rangeSize)
429 429
430 def resizeEvent(self, evt): 430 def resizeEvent(self, _evt):
431 """ 431 """
432 Protected method to handle resize events. 432 Protected method to handle resize events.
433 433
434 @param evt resize event 434 @param _evt resize event (unused)
435 @type QResizeEvent 435 @type QResizeEvent
436 """ 436 """
437 # just adjust the sizes of the columns 437 # just adjust the sizes of the columns
438 self.__resizeColumns() 438 self.__resizeColumns()
439 439
506 Private method to grab the input focus. 506 Private method to grab the input focus.
507 """ 507 """
508 self.__astWidget.setFocus(Qt.FocusReason.OtherFocusReason) 508 self.__astWidget.setFocus(Qt.FocusReason.OtherFocusReason)
509 509
510 @pyqtSlot(QTreeWidgetItem, int) 510 @pyqtSlot(QTreeWidgetItem, int)
511 def __astItemClicked(self, itm, column): 511 def __astItemClicked(self, itm, _column):
512 """ 512 """
513 Private slot handling a user click on an AST node item. 513 Private slot handling a user click on an AST node item.
514 514
515 @param itm reference to the clicked item 515 @param itm reference to the clicked item
516 @type QTreeWidgetItem 516 @type QTreeWidgetItem
517 @param column column number of the click 517 @param _column column number of the click (unused)
518 @type int 518 @type int
519 """ 519 """
520 self.__editor.clearAllHighlights() 520 self.__editor.clearAllHighlights()
521 521
522 if itm is not None: 522 if itm is not None:

eric ide

mercurial