Thread: [pyDC-devel] News
Status: Beta
Brought to you by:
aborder
From: Anakim B. <ab...@us...> - 2003-11-29 09:37:55
|
I've been spending the last two days fighting with wxWindows. After many tests I've come to the conclusion that wxEvtHandler.AddPendingEvent() method is not working as described in the manual: it sometimes process the event immediately, thus causing pyDC to get trapped in a deadlock. The solution I've found consists in adding a pair of wxYield() calls at the beginning of viewer*** methods in JobViewer.py; this seems to force AddPendingEvent() to queue the event for later processing. Since the number of tests I've done on the new code is not that big, please let me know if you experience any pyDC freeze. And now something else. I've just updated your profiles on sf.net; as pyDC developers you should now have read & write access to CVS repository. Mike, could you please test your account by committing the changes you've made to the DNS code? If I remember well Luca was working on a pure-Python he3 codec. I'd like to add it to pyDC as a fallback option in case the C++ extension is missing. Can I be of any help? Bye -- Anakim Border ab...@us... http://pydc.sf.net |
From: Luca M. <cb...@in...> - 2003-11-30 18:10:03
|
Anakim Border wrote: : > If I remember well Luca was working on a pure-Python he3 codec. I'd like to > add it to pyDC as a fallback option in case the C++ extension is missing. Can > I be of any help? : Hi! I've just on hold on this, playing with bits it's not that funny in python for me ;) I've collected a number of huffman python implementation but he3 it's more than that :( Right now I'm feeeling more like a beta tester than a developer due to lack of time, sorry |
From: Luca M. <cb...@in...> - 2003-11-30 18:19:47
|
The error message when I try to download an item already queued is not modal against the main application window. Searching the source of the problem I've found 3 different ways to display an error message : 1) wx.MessageDialog 2) wxMessageDialog 3) dialog = wx.MessageDialog What about to make a global generic rountine/class ShowErrorMessage or similar ? egrep -ri MessageDialog * FileListViewer.py: wx.MessageDialog(self, 'Source is not matching.', 'Error', wx.ICON_ERROR).ShowModal() FileListViewer.py: wx.MessageDialog(self, 'Item already queued.', 'Error', wx.ICON_ERROR).ShowModal() FileListViewer.py: wx.MessageDialog(self, 'Item already queued.', 'Error', wx.ICON_ERROR).ShowModal() Binary file FileListViewer.pyc matches HubViewer.py: dialog = wx.MessageDialog(self, "Invalid private chat text.", "Error", wx.ICON_ERROR) HubViewer.py: dialog = wx.MessageDialog(self, "No user with that nick.", "Error", wx.ICON_ERROR) HubViewer.py: wx.MessageDialog(self, 'No such user.', 'Error', wx.ICON_ERROR).ShowModal() Binary file HubViewer.pyc matches HublistPanel.py: wx.MessageDialog(self, 'You must specify an address.', 'Address error', wx.OK | wx.ICON_ERROR).ShowModal() HublistPanel.py: wx.MessageDialog(self, 'Invalid address.', 'Address error', wx.OK | wx.ICON_ERROR).ShowModal() HublistPanel.py: wx.MessageDialog(self, 'Address already in favorite list.', 'Address error', wx.OK | wx.ICON_ERROR).ShowModal() Binary file HublistPanel.pyc matches MainWnd.py: wx.MessageDialog(self, 'Invalid hub address: \'%s\'.' % addr, 'Address error', wx.OK | wx.ICON_ERROR).ShowModal() Binary file MainWnd.pyc matches QueuePanel.py: dialog = wx.MessageDialog(self, 'Item already queued.', 'Error', wx.ICON_ERROR) Binary file QueuePanel.pyc matches SearchViewer.py: dialog = wx.MessageDialog(self, 'No pattern present.', 'Search error', wx.OK | wx.ICON_ERROR) SearchViewer.py: dialog = wx.MessageDialog(self, 'Item already queued.', 'Error', wx.ICON_ERROR) SearchViewer.py: wx.MessageDialog(self, 'No such user.', 'Error', wx.ICON_ERROR).ShowModal() SearchViewer.py: wx.MessageDialog(self, 'Source is not matching.', 'Error', wx.ICON_ERROR).ShowModal() SearchViewer.py: wx.MessageDialog(self, 'Item already queued.', 'Error', wx.ICON_ERROR).ShowModal() Binary file SearchViewer.pyc matches Settings.py: wxMessageDialog(self, 'Error: %s.' % str(e), 'Settings error', wxOK | wxICON_ERROR).ShowModal() Settings.py: wxMessageDialog(self, 'Error: %s.' % msg, 'List address error', wxOK | wxICON_ERROR).ShowModal() Settings.py: wxMessageDialog(self, 'Error: %s.' % msg, 'Share directory error', wxOK | wxICON_ERROR).ShowModal() Binary file Settings.pyc matches pydc.py: wx.MessageDialog(None, 'The file \'queue.pk\' is corrupted. Please remove it and restart pyDC.', 'Queue error', wx.OK | wx.ICON_ERROR).ShowModal() pydc.py: wx.MessageDialog(wnd, str(e), 'Configuration error', wxOK | wxICON_ERROR).ShowModal() pydc.py: wx.MessageDialog(wnd, msg, 'Socket error', wxOK | wxICON_ERROR).ShowModal() pydc.py: wx.MessageDialog(wnd, 'pyDC won\'t start if not properly configured.', 'Settings error', wx.OK | wx.ICON_ERROR).ShowModal() |
From: Luca M. <cb...@in...> - 2003-11-30 18:32:58
|
Hi! When I start a new search pressing CTRL+S the focus is not anymore on the edit field like the previous version. |
From: Anakim B. <ab...@us...> - 2003-11-30 20:01:00
|
> When I start a new search pressing CTRL+S the focus is not anymore on the edit field > like the previous version. This has been solved in CVS. Bye -- Anakim Border ab...@us... http://pydc.sf.net |
From: Anakim B. <ab...@us...> - 2003-11-30 21:14:12
|
> What about to make a global generic rountine/class ShowErrorMessage or similar ? Done; will update CVS asap. Bye -- Anakim Border ab...@us... http://pydc.sf.net |