Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Inside of the editor class I have the local variable CurrentfileName
- and the function:
- def getTitle(self):
- return self.CurrentfileName
- 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.
- def printChildren(self, obj, indent):
- children=obj.children()
- if children==None:
- return
- for child in children:
- #debug print indent, child.__class__
- if (child.__class__ == editor):
- self.setWindowTitle(child.getTitle()+" - PyTe v3")
- #debug print "editor"
- #debug self.printChildren(child, indent + " ")
Add Comment
Please, Sign In to add comment