(self, text)
| 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(): |