| 2 |
|
|
| 3 |
# $Id$ |
# $Id$ |
| 4 |
# $Log$ |
# $Log$ |
| 5 |
|
# Revision 1.7 2004/09/15 22:31:27 xabbu |
| 6 |
|
# + in function OnUpdateButtonButton call to fraggleSync replaced with syncTopics |
| 7 |
|
# + topics are being recieved from the server now |
| 8 |
|
# |
| 9 |
# Revision 1.6 2004/08/31 02:25:34 joko |
# Revision 1.6 2004/08/31 02:25:34 joko |
| 10 |
# U removed FraggleTopicDetailFrame in favor of FraggleItemFrame and FraggleListFrame |
# U removed FraggleTopicDetailFrame in favor of FraggleItemFrame and FraggleListFrame |
| 11 |
# U now clearing topicListBox before updating it |
# U now clearing topicListBox before updating it |
| 80 |
|
|
| 81 |
def OnUpdateButtonButton(self, event): |
def OnUpdateButtonButton(self, event): |
| 82 |
#event.Skip() |
#event.Skip() |
| 83 |
self.engine.fraggleSync() |
self.engine.syncTopics() |
| 84 |
topics = self.engine.getTopics() |
topics = self.engine.getTopics() |
| 85 |
|
#print topics |
| 86 |
self.topicListBox.Clear() |
self.topicListBox.Clear() |
| 87 |
i = 0 |
i = 0 |
| 88 |
for topic in topics: |
for topic in topics: |
| 89 |
self.topicListBox.Append(topic['name'], i) |
self.topicListBox.Append(topics[topic], i) |
| 90 |
i = i + 1 |
i = i + 1 |
| 91 |
|
|
| 92 |
def OnTopicListBoxListboxDclick(self, event): |
def OnTopicListBoxListboxDclick(self, event): |
| 106 |
|
|
| 107 |
# resolve associated topic entry |
# resolve associated topic entry |
| 108 |
topics = self.engine.getTopics() |
topics = self.engine.getTopics() |
| 109 |
title = topics[seldata]['name'] |
title = topics[str(seldata)] |
| 110 |
result = topics[seldata]['result'] |
#print title |
| 111 |
|
|
| 112 |
if result == 'item': |
frame = FraggleListFrame.create(self.parent) |
|
frame = FraggleItemFrame.create(self.parent) |
|
|
elif result == 'list': |
|
|
frame = FraggleListFrame.create(self.parent) |
|
| 113 |
frame.SetName(str(seldata)) |
frame.SetName(str(seldata)) |
| 114 |
frame.SetTitle(title) |
frame.SetTitle(title) |
| 115 |
|
|