src/eric7/MicroPython/MicroPythonFileManagerWidget.py

branch
eric7
changeset 10428
a071d4065202
parent 10388
a34ce7f42e8b
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
494 Private method to check, if a file name is contained in a tree widget. 494 Private method to check, if a file name is contained in a tree widget.
495 495
496 @param filename name of the file to check 496 @param filename name of the file to check
497 @type str 497 @type str
498 @param treeWidget reference to the tree widget to be checked against 498 @param treeWidget reference to the tree widget to be checked against
499 @type QTreeWidget
499 @return flag indicating that the file name is present 500 @return flag indicating that the file name is present
500 @rtype bool 501 @rtype bool
501 """ 502 """
502 itemCount = treeWidget.topLevelItemCount() 503 itemCount = treeWidget.topLevelItemCount()
503 return itemCount > 0 and any( 504 return itemCount > 0 and any(

eric ide

mercurial