/[cvs]/nfo/projects/netfraggle/bin/FraggleTopicFrame.py
ViewVC logotype

Diff of /nfo/projects/netfraggle/bin/FraggleTopicFrame.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by joko, Mon Aug 30 13:06:16 2004 UTC revision 1.6 by joko, Tue Aug 31 02:25:34 2004 UTC
# Line 2  Line 2 
2    
3  # $Id$  # $Id$
4  # $Log$  # $Log$
5    # Revision 1.6  2004/08/31 02:25:34  joko
6    # U removed FraggleTopicDetailFrame in favor of FraggleItemFrame and FraggleListFrame
7    # U now clearing topicListBox before updating it
8    #
9  # Revision 1.5  2004/08/30 13:06:16  joko  # Revision 1.5  2004/08/30 13:06:16  joko
10  # U now gets config via self.engine  # U now gets config via self.engine
11  #  #
# Line 24  Line 28 
28  from wxPython.wx import *  from wxPython.wx import *
29  from wxPython.stc import *  from wxPython.stc import *
30    
31  import FraggleTopicDetailFrame  import FraggleItemFrame
32    import FraggleListFrame
33    
34  def create(parent):  def create(parent):
35      return FraggleTopicFrame(parent)      return FraggleTopicFrame(parent)
# Line 73  class FraggleTopicFrame(wxMDIChildFrame) Line 78  class FraggleTopicFrame(wxMDIChildFrame)
78          #event.Skip()          #event.Skip()
79          self.engine.fraggleSync()          self.engine.fraggleSync()
80          topics = self.engine.getTopics()          topics = self.engine.getTopics()
81            self.topicListBox.Clear()
82          i = 0          i = 0
83          for topic in topics:          for topic in topics:
84              self.topicListBox.Append(topic['name'], i)              self.topicListBox.Append(topic['name'], i)
# Line 96  class FraggleTopicFrame(wxMDIChildFrame) Line 102  class FraggleTopicFrame(wxMDIChildFrame)
102          # resolve associated topic entry          # resolve associated topic entry
103          topics = self.engine.getTopics()          topics = self.engine.getTopics()
104          title = topics[seldata]['name']          title = topics[seldata]['name']
105            result = topics[seldata]['result']
106    
107          frame = FraggleTopicDetailFrame.create(self.parent)          if result == 'item':
108                frame = FraggleItemFrame.create(self.parent)
109            elif result == 'list':
110                frame = FraggleListFrame.create(self.parent)
111          frame.SetName(str(seldata))          frame.SetName(str(seldata))
112          frame.SetTitle(title)          frame.SetTitle(title)
113                    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed