def OnTree_item_activated_linkmanTreeCtrl(self, evt): # Replace with event handler code friend = self.linkmanTreeCtrl.GetItemText(self.linkmanTreeCtrl.GetSelection()) user = self.Parent.user if self.messageFrame.has_key(friend): print "has " + friend self.messageFrame[friend].Show() pass else: frame = messageFrame(self, user, friend) frame.Show() self.messageFrame[friend] = frame uiDebug(self) uiDebug("mainPanelUi OnTree_item_activated_linkmanTreeCtrl()")
def createMessageFrame(self, user, friend): frame = messageFrame(self, user, friend) # frame.Show() frame.Hide() self.messageFrame[friend] = frame uiDebug("mainPanelUi createMessageFrame()")