Created
January 18, 2011 06:30
-
-
Save JoshAshby/784053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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