Guest User

Untitled

a guest
Jul 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Inside of the editor class I have the local variable CurrentfileName
  2. and the function:
  3. def getTitle(self):
  4. return self.CurrentfileName
  5.  
  6. in the main code I have a function which parses each tabs elements for the one called editor, which is the editor object that belongs to that tab. After I have found editor I can simply call getTitle() and boom, the two are talking.
  7.  
  8. def printChildren(self, obj, indent):
  9. children=obj.children()
  10. if children==None:
  11. return
  12. for child in children:
  13. #debug print indent, child.__class__
  14. if (child.__class__ == editor):
  15. self.setWindowTitle(child.getTitle()+" - PyTe v3")
  16. #debug print "editor"
  17. #debug self.printChildren(child, indent + " ")
Add Comment
Please, Sign In to add comment