src/eric7/Debugger/VariablesViewer.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10703
120b22aaec31
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
492 492
493 def columnCount(self, parent=QModelIndex()): # noqa: U100 493 def columnCount(self, parent=QModelIndex()): # noqa: U100
494 """ 494 """
495 Public method to get the column count. 495 Public method to get the column count.
496 496
497 @param parent the model parent 497 @param parent the model parent (unused)
498 @type QModelIndex 498 @type QModelIndex
499 @return number of columns 499 @return number of columns
500 @rtype int 500 @rtype int
501 """ 501 """
502 return 3 502 return 3
946 946
947 header.resizeSection(0, 130) # variable column 947 header.resizeSection(0, 130) # variable column
948 header.resizeSection(1, 180) # value column 948 header.resizeSection(1, 180) # value column
949 header.resizeSection(2, 50) # type column 949 header.resizeSection(2, 50) # type column
950 950
951 header.sortIndicatorChanged.connect( 951 header.sortIndicatorChanged.connect(lambda *_x: self.varModel.getMore())
952 lambda *x: self.varModel.getMore() # noqa: U100
953 )
954 952
955 self.__createPopupMenus() 953 self.__createPopupMenus()
956 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) 954 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
957 self.customContextMenuRequested.connect(self.__showContextMenu) 955 self.customContextMenuRequested.connect(self.__showContextMenu)
958 956

eric ide

mercurial