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 |
# |
# |
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) |
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) |
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 |
|
|