Skip to content

Instantly share code, notes, and snippets.

@JoshAshby
Created January 18, 2011 06:30
Show Gist options
  • Save JoshAshby/784053 to your computer and use it in GitHub Desktop.
Save JoshAshby/784053 to your computer and use it in GitHub Desktop.
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 + " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment