MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / SetText

Method SetText

tools/python-3.11.9-amd64/Lib/idlelib/tree.py:407–416  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

405 return os.path.basename(self.path) != ""
406
407 def SetText(self, text):
408 newpath = os.path.dirname(self.path)
409 newpath = os.path.join(newpath, text)
410 if os.path.dirname(newpath) != os.path.dirname(self.path):
411 return
412 try:
413 os.rename(self.path, newpath)
414 self.path = newpath
415 except OSError:
416 pass
417
418 def GetIconName(self):
419 if not self.IsExpandable():

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected