You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(53) |
Apr
(48) |
May
(14) |
Jun
(3) |
Jul
(21) |
Aug
(11) |
Sep
(77) |
Oct
(67) |
Nov
(28) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(112) |
Feb
(143) |
Mar
(114) |
Apr
(138) |
May
(173) |
Jun
(119) |
Jul
(119) |
Aug
(117) |
Sep
(187) |
Oct
(170) |
Nov
(254) |
Dec
(193) |
2005 |
Jan
(336) |
Feb
(284) |
Mar
(189) |
Apr
(100) |
May
(89) |
Jun
(52) |
Jul
(85) |
Aug
(138) |
Sep
(181) |
Oct
(137) |
Nov
(104) |
Dec
(98) |
2006 |
Jan
(76) |
Feb
(106) |
Mar
(224) |
Apr
(270) |
May
(103) |
Jun
(144) |
Jul
(77) |
Aug
(38) |
Sep
(37) |
Oct
(20) |
Nov
(14) |
Dec
(73) |
2007 |
Jan
(130) |
Feb
(68) |
Mar
(78) |
Apr
(60) |
May
(45) |
Jun
(63) |
Jul
(84) |
Aug
(45) |
Sep
(40) |
Oct
(12) |
Nov
(71) |
Dec
(56) |
2008 |
Jan
(44) |
Feb
(20) |
Mar
(25) |
Apr
(17) |
May
(33) |
Jun
(60) |
Jul
(97) |
Aug
(38) |
Sep
(10) |
Oct
(20) |
Nov
(13) |
Dec
(19) |
2009 |
Jan
(7) |
Feb
(5) |
Mar
(23) |
Apr
(10) |
May
(6) |
Jun
(5) |
Jul
(17) |
Aug
(7) |
Sep
(14) |
Oct
(27) |
Nov
(13) |
Dec
(12) |
2010 |
Jan
(37) |
Feb
(9) |
Mar
(13) |
Apr
(12) |
May
(8) |
Jun
(3) |
Jul
(1) |
Aug
(9) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
(4) |
2011 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(4) |
May
|
Jun
(2) |
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: Roger B. <ro...@ro...> - 2003-12-07 11:40:25
|
[2nd try - SourceForge is getting confused about my email address] Roger Binns wrote: >> You were initializing the combobox, but apparently it still didn't >> have a default selected item, which... causes a coredump on wxMac. ;-) > > Ok, the root cause would appear to be that the combobox is > readonly, and the default value supplied is not in the list > of choices. Try this as the line instead (uses LG-VX4400 as > the value). > > self.phonebox=wxComboBox(self, -1, "LG-VX4400", style=wxCB_DROPDOWN|wxCB_READONLY|wxCB_SORT, choices=self.phonemodels.keys()) > > I have committed it as that. > > Roger |
From: Steven P. <n9...@n9...> - 2003-12-06 14:34:27
|
On Dec 5, 2003, at 11:36 PM, Roger Binns wrote: > I have committed fixes for both the issues you are seeing. > The coredump was because I didn't supply an initial value > for the combobox. On Windows and Linux it then defaults > to the empty string. On Mac it defaults to a coredump :-) The problem still remained... I did a little more work on it and have a fix for you... Try something like this: if self.phonebox.GetSelection() == -1 and \ self.phonebox.GetCount() >= 1: self.phonebox.SetSelection(0) print "pb=",self.phonebox.GetValue() if self.phonebox.GetValue()=="": self.phonebox.SetValue("LG-VX4400") You were initializing the combobox, but apparently it still didn't have a default selected item, which... causes a coredump on wxMac. ;-) > Thanks for nailing down the issue. I think that if you incorporate the above, or something that accomplishes the same thing elsewhere, it will nail it down. The program now runs on MacOS X 10.3.1, so all is happy here. Now on to see about bundling it up for a Mac application. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Roger B. <ro...@ro...> - 2003-12-06 05:35:32
|
I have committed fixes for both the issues you are seeing. The coredump was because I didn't supply an initial value for the combobox. On Windows and Linux it then defaults to the empty string. On Mac it defaults to a coredump :-) The other pubsub stuff was because I changed the format of the categories from a dictionary to a list, but missed it in one place. BTW debuggers are for wimps :-) I actually just use print statements etc. I do use them on C/C++ code however. Linus' opinions are interesting: http://lwn.net/2000/0914/a/lt-debugger.php3 I would agree with him in the context of the kernel. In BitPim I do want development to be really easy, and Python is definitely a different programming style. Prior to 0.7 the stack traces only gave line numbers. I could usually figure out exactly what the problem was as a result. 0.7 now also has the groovy feature of including local variables in each frame which goes a long way to almost making this trivial :-) They work fine for issues in the Python code, but not for C code issues such as coredumps like you had. Thanks for nailing down the issue. Roger |
From: Roger B. <ro...@ro...> - 2003-12-06 05:22:10
|
> I have a an LG G4050, which doesn't seem to work with bitpim. I was > hoping it would be close enough to the 4400, but that doesn't seem to be > the case. As far as I can tell, that is a GSM phone. It will have absolutely nothing in common with the 4400 (other than the digit 4). The good news is that almost all GSM phones use exactly the same protocol. The bad news is you or someone else with a GSM phone will need to develop the phone code for BitPim. > As it stands, trying to get or send data causes the phone to power off > (obviously not the desired behavior). I'm using the IR port and it's not > clear from the documentation whether one can actually use the IR for > modify the state of the phone (although i have been able to dial out > with it). Can you turn on the protocol log and lets see how far it gets. Roger |
From: Steven P. <n9...@n9...> - 2003-12-05 23:23:00
|
On Dec 4, 2003, at 10:33 PM, Roger Binns wrote: >> Thread 0 Crashed: >> #0 0x03019ed0 in wxChoice::GetString(int) const >> (wxChoice::GetString(int) const + 36) > > What was the exact sequence of actions to cause the crash? Also worth mentioning.... v0.62 works fine. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Steven P. <n9...@n9...> - 2003-12-05 21:41:38
|
On Dec 4, 2003, at 10:33 PM, Roger Binns wrote: >> Thread 0 Crashed: >> #0 0x03019ed0 in wxChoice::GetString(int) const >> (wxChoice::GetString(int) const + 36) > > What was the exact sequence of actions to cause the crash? Sorry, Roger... I'm just getting used to Python stuff. I just found the debugger. ;-) It's crashing in this section of guiwidgets.py: def setdefaults(self): if self.diskbox.GetValue()==self.setme: if guihelper.IsMSWindows(): # we want subdir of my documents on wind ows # nice and painful import _winreg x=_winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER) y=_winreg.OpenKey(x, r"Software\Microsoft\Windows\CurrentVer sion\Explorer\Shell Folders") str=_winreg.QueryValueEx(y, "Personal")[0] _winreg.CloseKey(y) _winreg.CloseKey(x) path=os.path.join(str, "bitpim") else: path=os.path.expanduser("~/.bitpim-files") self.diskbox.SetValue(path) if self.commbox.GetValue()==self.setme: comm="auto" self.commbox.SetValue(comm) print "pb=",self.phonebox.GetValue() if self.phonebox.GetValue()=="": self.phonebox.SetValue("LG-VX4400") It segfaults with the above crash when it tries to execute the following line: print "pb=",self.phonebox.GetValue() If I comment out (just for testing) that and the two lines following it (so that self.phonebox.GetValue() is never called at this point) it gets past that point.... And I get the same crash with the same pubsub issue I was having with 2.5.1. Again, this is all on a CLEAN install, there is NOTHING in my ~/.bitpim-files directory. Can you verify that something hasn't changed when run in the first-run config? Thanks! Just for reference, here is the pubsub crash this time around: An unexpected exception has occurred. Please see the help for details on what to do. Traceback (most recent call last): File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 237, in OnClose self.goforit() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 234, in goforit self.app.makemainwindow() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 312, in makemainwindow frame=MainWindow(None, -1, "BitPim", self.config) File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 521, in __init__ self.OnPopulateEverythingFromDisk() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 789, in OnPopulateEverythingFromDisk self.phonewidget.populate(results) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 542, in populate pubsub.publish(pubsub.MERGE_CATEGORIES, dict.get('categories', [])) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 72, in publish Publisher.sendMessage(topic, data) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wxPython/lib/pubsub.py", line 141, in sendMessage subscriber[2](message) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wxPython/lib/pubsub.py", line 169, in <lambda> return lambda m, f=function: f(m) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 57, in call return self.__call__(argument) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 51, in __call__ return getattr(obj, self.methodname)(*args, **kwargs) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in OnMergeCategories cats=msg.data[:] TypeError: unhashable type Variables by last 6 frames, innermost last Frame publish in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 72 topic = ('request', 'mergecategories') data = {} Frame sendMessage in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wxPython/lib/pubsub.py at line 141 topic = ('request', 'mergecategories') self = <wxPython.lib.pubsub.Publisher instance at 0x504ead0> aTopic = <Topic>'request', 'mergecategories'</Topic> subscriber = (<bound method _weaklistener.call of <pubsub._weaklistener i topicList = [(<bound method _weaklistener.call of <pubsub._weaklistener message = <wxPython.lib.pubsub.Message instance at 0x6a32e18> data = {} Frame <lambda> in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wxPython/lib/pubsub.py at line 169 m = <wxPython.lib.pubsub.Message instance at 0x6a32e18> f = <bound method _weaklistener.call of <pubsub._weaklistener in Frame call in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 57 self = <pubsub._weaklistener instance at 0x505c828> argument = <wxPython.lib.pubsub.Message instance at 0x6a32e18> Frame __call__ in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 51 self = <pubsub._weaklistener instance at 0x505c828> args = (<wxPython.lib.pubsub.Message instance at 0x6a32e18>,) obj = <phonebook.CategoryManager instance at 0x27b5530> kwargs = {} Frame OnMergeCategories in /Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py at line 312 msg = <wxPython.lib.pubsub.Message instance at 0x6a32e18> self = <phonebook.CategoryManager instance at 0x27b5530> -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Donour S. <do...@uc...> - 2003-12-05 16:29:35
|
Hi all I have a an LG G4050, which doesn't seem to work with bitpim. I was hoping it would be close enough to the 4400, but that doesn't seem to be the case. The user community for the 4050 seems to be nonexistant. Anybody have any knowledge about this model? As it stands, trying to get or send data causes the phone to power off (obviously not the desired behavior). I'm using the IR port and it's not clear from the documentation whether one can actually use the IR for modify the state of the phone (although i have been able to dial out with it). thanks donour -- |Donour Sizemore do...@uc...| |Technical Programmer & Numerical Analyst | |Economic Research Center Ph: 773-834-4399 | |University of Chicago Office: SS-521 | |
From: Alan G. <ago...@ya...> - 2003-12-05 15:17:04
|
--- Roger Binns <ro...@ro...> wrote: > Alan Gonzalez wrote: > > I'm still here, just got distracted. The last thing I was messing with was > > outlook access through python. I haven't added any new features to my > local > > copy of bitpim since the last updates i sent you. > > I suspect some of the code may no longer work. In particular the phonebook > format has gradually improved and is documented at the top of phonebook.py. > You may not quite be supplying it back in that format, and probably > not coping with it for writing. I would also like to move the > current writing code which should be generic to all LG phones > into the main LG class. I think you can take the existing 4400 code > and put it in your class and see if it works. If it does, then it can > be moved as is. > > What did you find out about the Outlook stuff? > Well I found out that working with outlook 98 and newer through python is much easier. I had outlook 97 on one computer and outlook 2000 on another. Outlook 97 was just not working right. In researching it seemed like outlook 98 behaves better as far as the MAPI interface and declared constants. It's pretty easy to go through contacts or calendar or email and get that information. I have a couple scripts that do it. The thing though that i hadn't figured out how to do is make it work with different outlook versions transparently. Right now I have to specify the outlook version like 0.9.0. > If you look in native/wab, I did implement code that deals with the > Windows address book. The api is documented at > http://msdn.microsoft.com/workshop/wab/reference/interfaces.asp > > I believe the interfaces should be identical on Outlook except > for the last two which are wab specific. > Possibly. I just go through the MAPI interfaces. > Roger > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
From: Steven P. <n9...@n9...> - 2003-12-05 15:09:40
|
On Dec 4, 2003, at 10:33 PM, Roger Binns wrote: >> Thread 0 Crashed: >> #0 0x03019ed0 in wxChoice::GetString(int) const >> (wxChoice::GetString(int) const + 36) > > I had a similar problem using wxPython 2.4.2.4 on Linux > with GTK2 in Unicode mode. Does the wxPython demo > run for you? Yes, it does. I haven't stepped through every test, but it comes up and a few randomly picked tests do run fine. > You might want to start with this stuff: > > http://wiki.wxpython.org/index.cgi/wxPythonOSX_20Issues > > ComboBox isn't listed as having any issues. > > What was the exact sequence of actions to cause the crash? I ran `pythonw bp.py` and it crashed after the splash screen came up but before the main window was put on screen. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Steven P. <n9...@n9...> - 2003-12-05 15:03:54
|
On Dec 4, 2003, at 10:27 PM, Roger Binns wrote: >> File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in >> OnMergeCategories >> cats=msg.data[:] >> TypeError: unhashable type > > Delete the index.idx file from ~/.bitpim-files/phonebook. I changed > the > format amongst other things. It does the same thing when run with a clean ~/.bitpim-files directory. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Roger B. <ro...@ro...> - 2003-12-05 07:35:09
|
Alan Gonzalez wrote: > I'm still here, just got distracted. The last thing I was messing with was > outlook access through python. I haven't added any new features to my local > copy of bitpim since the last updates i sent you. I suspect some of the code may no longer work. In particular the phonebook format has gradually improved and is documented at the top of phonebook.py. You may not quite be supplying it back in that format, and probably not coping with it for writing. I would also like to move the current writing code which should be generic to all LG phones into the main LG class. I think you can take the existing 4400 code and put it in your class and see if it works. If it does, then it can be moved as is. What did you find out about the Outlook stuff? If you look in native/wab, I did implement code that deals with the Windows address book. The api is documented at http://msdn.microsoft.com/workshop/wab/reference/interfaces.asp I believe the interfaces should be identical on Outlook except for the last two which are wab specific. Roger |
From: Roger B. <ro...@ro...> - 2003-12-05 07:21:38
|
Is anyone looking for non-phone specific coding or other projects? There are several pieces of code I would like written that have nothing to do with a particular phone. Here are some examples: User interface These all require working with wxPython. You should be familiar with wxPython and the wx libraries. They are fairly simple to learn. Ideally you should have at least two platforms out of Windows, Linux and Mac available to ensure your code works correctly. - A better configuration dialog - Drag and drop in the filesystem view - Improving the calendar UI - Various random tuneups and improvements throughout such as hot keys, using colour, better fonts - Remembering stuff and setting it again on next run (eg window sizes and positions) Algorithms These require just working in Python and figuring out how to solve various problems. - Being able to work out the difference between two phonebook records and produce output as a list of adds, changes and removes. As an example this would be used to compare what was on a phone (or other source) between two syncs. (They deleted that user, added one, changed so and so's home number, added a home number for that person etc). The SequenceMatcher in difflib http://www.python.org/doc/2.3.2/lib/module-difflib.html may actually do most of the work for you - Based on the output of the above, work out the rules to apply the changes to the phonebook stored in the UI - Work out a way of doing undo's and redos, perhaps including out of sequence redos - [Phone specific - VX4400/6000] Work out the correct way of allocating index numbers to wallpaper and ringtone entries when writing out the index files (especially if the existing index referenced files that don't exist) Interoperability These are random pieces of coding work. - Writing a phone emulator that impersonates various models user interfaces, phonebooks etc. This is useful for testing and for other people to see what other phones behave like. - Working out which COM interfaces are used to talk to outlook for contacts and calendaring information - Looking for online sync information. This could be syncing with other services (eg Yahoo addressbook) or funky things like redirecting bitpim over the network (ie bitpim runs on machine, the phone is plugged into another and they are connected over the network). Other I would like to improve both the content and appearance of the website and online help. I think it can be made both better looking as well as clearer, more concise and better worded. Roger |
From: Roger B. <ro...@ro...> - 2003-12-05 07:21:37
|
I want to fix the code that gets executed after a phonebook write happens. The current code behaves as though an implicit read of the phonebook happened afterwards and blats the UI phonebook with that. It is certainly the wrong behaviour now. For the VX4400 and VX6000 (and I suspect the TM520/VX10) the only thing that does need to be updated are the serial numbers for each entry. In most cases they will be the same. However new entries will be assigned a new serial, and if the user has erased the complete phonebook on the phone, then all entries will get new serials. Is there anything else on other phones that needs to be sent back as updates after writing? I have also started some documentation about what the phone specific code should be doing, classes etc. See phonespec.html in the web directory. Roger |
From: Roger B. <ro...@ro...> - 2003-12-05 04:32:58
|
> Thread 0 Crashed: > #0 0x03019ed0 in wxChoice::GetString(int) const > (wxChoice::GetString(int) const + 36) I had a similar problem using wxPython 2.4.2.4 on Linux with GTK2 in Unicode mode. Does the wxPython demo run for you? You might want to start with this stuff: http://wiki.wxpython.org/index.cgi/wxPythonOSX_20Issues ComboBox isn't listed as having any issues. What was the exact sequence of actions to cause the crash? Roger |
From: Roger B. <ro...@ro...> - 2003-12-05 04:27:11
|
> I installed all the packages/binaries as described on the MacOS X page > link on the bitpim page. You will need to follow the developer page as that stuff is out of date for BitPim 0.7: http://bitpim.sourceforge.net/developer.html > File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in > OnMergeCategories > cats=msg.data[:] > TypeError: unhashable type Delete the index.idx file from ~/.bitpim-files/phonebook. I changed the format amongst other things. Roger |
From: Steven P. <n9...@n9...> - 2003-12-05 03:47:50
|
On Dec 4, 2003, at 3:27 PM, Roger Binns wrote: > You seem to be saying that standard wxPython 2.4 doesn't work. > I was under the impression it does work fine on Macs. There > may be some glitches, but I will happily fix those. One > example is that multi-line text boxes on Windows default to > about 10 lines in length, whereas on Linux they defautl to zero. > There will be stuff like that and I will certainly fix it > if I know about it! Here is the relevant section of the crashlog when, under Panther (MacOS X 10.3.1) I install the wxPython 2.4.2 kit from the wxPython.org web page and the MacPython stuff for Panther. Date/Time: 2003-12-04 21:42:29 -0600 OS Version: 10.3.1 (Build 7C107) Command: Python (/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/ Python.app/Contents/MacOS/Python) PID: 1127 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0xfffffff8 Thread 0 Crashed: #0 0x03019ed0 in wxChoice::GetString(int) const (wxChoice::GetString(int) const + 36) #1 0x0301bf88 in wxComboBox::GetValue() const (wxComboBox::GetValue() const + 112) #2 0x01370fd4 in _wrap_wxComboBox_GetValue (_wrap_wxComboBox_GetValue + 220) #3 0x95f4a8d0 in 0x95f4a8d0 #4 0x95fa9df0 in 0x95fa9df0 #5 0x95fa6d44 in 0x95fa6d44 #6 0x95fa7e30 in 0x95fa7e30 #7 0x95fa97dc in 0x95fa97dc #8 0x95fa9580 in 0x95fa9580 #9 0x95fa6c64 in 0x95fa6c64 #10 0x95fa9728 in 0x95fa9728 #11 0x95fa9580 in 0x95fa9580 #12 0x95fa6c64 in 0x95fa6c64 #13 0x95fa7e30 in 0x95fa7e30 #14 0x95f5f354 in 0x95f5f354 #15 0x95f4a8d0 in 0x95f4a8d0 #16 0x95f529e8 in 0x95f529e8 #17 0x95f4a8d0 in 0x95f4a8d0 #18 0x95fa91ec in 0x95fa91ec #19 0x95f4de40 in 0x95f4de40 #20 0x95f4a8d0 in 0x95f4a8d0 #21 0x95fa9ba8 in 0x95fa9ba8 #22 0x95fa9598 in 0x95fa9598 #23 0x95fa6c64 in 0x95fa6c64 #24 0x95fa7e30 in 0x95fa7e30 #25 0x95f5f354 in 0x95f5f354 #26 0x95f4a8d0 in 0x95f4a8d0 #27 0x95f529e8 in 0x95f529e8 #28 0x95f4a8d0 in 0x95f4a8d0 #29 0x95fa91ec in 0x95fa91ec #30 0x95f4de40 in 0x95f4de40 #31 0x95f4a8d0 in 0x95f4a8d0 #32 0x95fa9ba8 in 0x95fa9ba8 #33 0x95fa9598 in 0x95fa9598 #34 0x95fa6c64 in 0x95fa6c64 #35 0x95fa9728 in 0x95fa9728 #36 0x95fa9580 in 0x95fa9580 #37 0x95fa6c64 in 0x95fa6c64 #38 0x95fa9728 in 0x95fa9728 #39 0x95fa9580 in 0x95fa9580 #40 0x95fa6c64 in 0x95fa6c64 #41 0x95fa7e30 in 0x95fa7e30 #42 0x95f5f354 in 0x95f5f354 #43 0x95f4a8d0 in 0x95f4a8d0 #44 0x95f529e8 in 0x95f529e8 #45 0x95f4a8d0 in 0x95f4a8d0 #46 0x95fa91ec in 0x95fa91ec #47 0x012daab4 in wxPyCallback::EventThunker(wxEvent&) (wxPyCallback::EventThunker(wxEvent&) + 224) #48 0x03082680 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) (wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 208) #49 0x0308208c in wxEvtHandler::ProcessEvent(wxEvent&) (wxEvtHandler::ProcessEvent(wxEvent&) + 124) #50 0x030fb9c8 in wxWindowBase::Close(bool) (wxWindowBase::Close(bool) + 132) #51 0x03082328 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) (wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) + 232) #52 0x03082128 in wxEvtHandler::ProcessEvent(wxEvent&) (wxEvtHandler::ProcessEvent(wxEvent&) + 280) #53 0x030e929c in wxTimerBase::Notify() (wxTimerBase::Notify() + 132) #54 0x0304dc94 in wxProcessTimer(unsigned long, void*) (wxProcessTimer(unsigned long, void*) + 104) #55 0x0303673c in wxMacProcessNotifierEvents (wxMacProcessNotifierEvents + 192) #56 0x03036784 in wxMacProcessNotifierAndPendingEvents (wxMacProcessNotifierAndPendingEvents + 28) #57 0x030117d0 in wxApp::OnIdle(wxIdleEvent&) (wxApp::OnIdle(wxIdleEvent&) + 132) #58 0x03082328 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) (wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) + 232) #59 0x03082128 in wxEvtHandler::ProcessEvent(wxEvent&) (wxEvtHandler::ProcessEvent(wxEvent&) + 280) #60 0x030116ac in wxApp::ProcessIdle() (wxApp::ProcessIdle() + 108) #61 0x03011e3c in wxApp::MacDoOneEvent() (wxApp::MacDoOneEvent() + 160) #62 0x0301161c in wxApp::MainLoop() (wxApp::MainLoop() + 148) #63 0x012d8288 in wxPyApp::MainLoop() (wxPyApp::MainLoop() + 84) #64 0x012e1610 in _wrap_wxPyApp_MainLoop (_wrap_wxPyApp_MainLoop + 208) #65 0x95f4a8d0 in 0x95f4a8d0 #66 0x95fa9df0 in 0x95fa9df0 #67 0x95fa6d44 in 0x95fa6d44 #68 0x95fa7e30 in 0x95fa7e30 #69 0x95f5f354 in 0x95f5f354 #70 0x95f4a8d0 in 0x95f4a8d0 #71 0x95f529e8 in 0x95f529e8 #72 0x95f4a8d0 in 0x95f4a8d0 #73 0x95fa9ba8 in 0x95fa9ba8 #74 0x95fa9598 in 0x95fa9598 #75 0x95fa6c64 in 0x95fa6c64 #76 0x95fa9728 in 0x95fa9728 #77 0x95fa9580 in 0x95fa9580 #78 0x95fa6c64 in 0x95fa6c64 #79 0x95fa7e30 in 0x95fa7e30 #80 0x95fa97dc in 0x95fa97dc #81 0x95fa9580 in 0x95fa9580 #82 0x95fa6c64 in 0x95fa6c64 #83 0x95fa7e30 in 0x95fa7e30 #84 0x95fa4734 in 0x95fa4734 #85 0x95fc85f0 in 0x95fc85f0 #86 0x95fc7668 in 0x95fc7668 #87 0x95fd1ec0 in 0x95fd1ec0 #88 0x00003c78 in 0x3c78 #89 0x00003aec in 0x3aec > The preferred versions are Python 2.3(.x) and wxPython 2.4.2.4 > on all platforms. (On Linux I actually ship with Python 2.2 > but that is because it is what Redhat ships.) This would be Python 2.3, wxPython 2.4.2.4. So, this seems to indicate that this combination (at least in regard to my local install/reinstall) does not work on a Macintosh. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Steven P. <n9...@n9...> - 2003-12-05 03:31:08
|
On Dec 4, 2003, at 3:27 PM, Roger Binns wrote: >> VERY Strange... I didn't change that bit of code except to make it >> wx.lib.pubsub isntead of wxPython.lib.pubsub. It was importing >> Publication in the code I had downloaded from CVS. > > The word 'Publication' doesn't show up in any greps. It does > import Publisher. I must have made a typo when I composed the original email. Sorry for the confusion. ;-) >> Well, it's a good use of my time if it allows me to use the project >> on >> my system, which I cannot use otherwise. ;-) > > You seem to be saying that standard wxPython 2.4 doesn't work. > I was under the impression it does work fine on Macs. There > may be some glitches, but I will happily fix those. One > example is that multi-line text boxes on Windows default to > about 10 lines in length, whereas on Linux they defautl to zero. > There will be stuff like that and I will certainly fix it > if I know about it! I installed all the packages/binaries as described on the MacOS X page link on the bitpim page. It would not run. I don't know what dependency/etc the problem was with, I just know that I am doing development work (wxWindows on the Mac) that requires features only in the 2.5.x tree, so that is why I'm down this road. I'm not implying anything about the other versions, I haven't tested them extensively nor did I spend time trying to ferret out the problems. One last question, and if you think this is due to 2.5.x changes, I'll punt... Still errors when doing the pubsub stuff, updated to CVS file versions: pubsub.py,v 1.3 2003/12/03 10:55:22 rogerb phonebook.py,v 1.33 2003/12/04 04:27:39 rogerb phonebookentryeditor.py,v 1.9 2003/12/03 10:54:56 I receive this error still: (again, I'm just learning Python, so I'm having a hard time grokking some bits) An unexpected exception has occurred. Please see the help for details on what to do. Traceback (most recent call last): File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 239, in OnClose self.goforit() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 236, in goforit self.app.makemainwindow() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 315, in makemainwindow frame=MainWindow(None, -1, "BitPim", self.config) File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 524, in __init__ self.OnPopulateEverythingFromDisk() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 792, in OnPopulateEverythingFromDisk self.phonewidget.populate(results) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 542, in populate pubsub.publish(pubsub.MERGE_CATEGORIES, dict.get('categories', [])) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 72, in publish Publisher.sendMessage(topic, data) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wx/lib/pubsub.py", line 141, in sendMessage subscriber[2](message) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wx/lib/pubsub.py", line 169, in <lambda> return lambda m, f=function: f(m) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 57, in call return self.__call__(argument) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 51, in __call__ return getattr(obj, self.methodname)(*args, **kwargs) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in OnMergeCategories cats=msg.data[:] TypeError: unhashable type Variables by last 6 frames, innermost last Frame publish in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 72 topic = ('request', 'mergecategories') data = {} Frame sendMessage in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wx/lib/pubsub.py at line 141 topic = ('request', 'mergecategories') self = <wx.lib.pubsub.Publisher instance at 0x50e3328> aTopic = <Topic>'request', 'mergecategories'</Topic> subscriber = (<bound method _weaklistener.call of <pubsub._weaklistener i topicList = [(<bound method _weaklistener.call of <pubsub._weaklistener message = <wx.lib.pubsub.Message instance at 0x8918918> data = {} Frame <lambda> in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wx/lib/pubsub.py at line 169 m = <wx.lib.pubsub.Message instance at 0x8918918> f = <bound method _weaklistener.call of <pubsub._weaklistener in Frame call in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 57 self = <pubsub._weaklistener instance at 0x50e9620> argument = <wx.lib.pubsub.Message instance at 0x8918918> Frame __call__ in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 51 self = <pubsub._weaklistener instance at 0x50e9620> args = (<wx.lib.pubsub.Message instance at 0x8918918>,) obj = <phonebook.CategoryManager instance at 0x50b3b70> kwargs = {} Frame OnMergeCategories in /Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py at line 312 msg = <wx.lib.pubsub.Message instance at 0x8918918> self = <phonebook.CategoryManager instance at 0x50b3b70> It seems to hinge on this part: File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in OnMergeCategories cats=msg.data[:] TypeError: unhashable type From my digging, I have not yet uncovered the most likely cause of this type of error. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Roger B. <ro...@ro...> - 2003-12-04 21:26:29
|
> VERY Strange... I didn't change that bit of code except to make it > wx.lib.pubsub isntead of wxPython.lib.pubsub. It was importing > Publication in the code I had downloaded from CVS. The word 'Publication' doesn't show up in any greps. It does import Publisher. I am very happy to change stuff from 'from wxPython.wx import*' to 'import wx'. All the new code has been written that way and I have been slowly changing over the old code. > Well, it's a good use of my time if it allows me to use the project on > my system, which I cannot use otherwise. ;-) You seem to be saying that standard wxPython 2.4 doesn't work. I was under the impression it does work fine on Macs. There may be some glitches, but I will happily fix those. One example is that multi-line text boxes on Windows default to about 10 lines in length, whereas on Linux they defautl to zero. There will be stuff like that and I will certainly fix it if I know about it! The preferred versions are Python 2.3(.x) and wxPython 2.4.2.4 on all platforms. (On Linux I actually ship with Python 2.2 but that is because it is what Redhat ships.) > I will see what I can do. Theoretically, if everything is bundled > right, you may even be able to take a given package and just drop the > new .py modules into it to do an update. Maybe. I'm not sure. I'll get > back to you on it. The bundling isn't done that way. What happens is that a copy of interpretter is taken, and all the .py files it imports are compiled to .pyc/.pyo and placed in a zip and appended to the Python exe. The Python exe is frigged to do an import from the zip file. Any shared libraries are placed alongside the Python executable and the import process suitably frigged to find them. This makes everything standalone and independent of anything the user may already have installed on their machine. Here is what the Windows installation looks like: 09/09/2003 03:18 PM 437 bitpim.css 12/02/2003 02:47 PM 887,712 bitpim.exe 08/20/2003 01:26 PM 655 bitpim.exe.manifest 10/01/2003 12:40 PM 61,440 calendarc.pyd 10/02/2003 08:03 PM 45,116 datetime.pyd 10/01/2003 12:40 PM 286,720 gizmosc.pyd 10/01/2003 12:40 PM 299,008 gridc.pyd 10/01/2003 12:40 PM 36,864 helpc.pyd 10/01/2003 12:40 PM 196,608 htmlc.pyd 10/02/2003 08:03 PM 45,114 parser.pyd 10/02/2003 08:02 PM 974,908 python23.dll 09/02/2003 11:01 AM 86,084 PyWinTypes23.dll 12/02/2003 02:47 PM <DIR> resources 10/02/2003 08:04 PM 20,538 select.pyd 09/02/2003 11:01 AM 61,497 win32api.pyd 09/02/2003 11:01 AM 28,731 win32event.pyd 09/02/2003 11:01 AM 73,786 win32file.pyd 10/01/2003 12:40 PM 2,240,512 wxc.pyd 10/01/2003 10:43 AM 3,239,936 wxmsw24h.dll 10/02/2003 08:04 PM 61,496 zlib.pyd 10/02/2003 08:02 PM 49,211 _socket.pyd 10/02/2003 08:03 PM 57,400 _sre.pyd 10/02/2003 08:03 PM 495,616 _ssl.pyd 10/02/2003 08:04 PM 36,864 _winreg.pyd This is what the Linux installation looks like: -r-xr-xr-x 1 root root 21083 Aug 30 2002 binascii.so -rw-r--r-- 1 root root 432 Sep 10 10:33 bitpim.css -rwxr-xr-x 1 root root 3376339 Sep 10 10:33 bp -r-xr-xr-x 1 root root 21857 Aug 30 2002 cStringIO.so -r-xr-xr-x 1 root root 11875 Aug 30 2002 errnomodule.so -r-xr-xr-x 1 root root 16192 Aug 30 2002 fcntlmodule.so -rwxr-xr-x 1 root root 7041941 Jun 17 16:10 libwx_gtkd-2.4.so -r-xr-xr-x 1 root root 16640 Aug 30 2002 _localemodule.so -r-xr-xr-x 1 root root 16985 Aug 30 2002 mathmodule.so -r-xr-xr-x 1 root root 20997 Aug 30 2002 operator.so -rwxr-xr-x 1 root root 115593 Aug 30 2002 pcre.so -r-xr-xr-x 1 root root 9656 Aug 30 2002 pwdmodule.so -r-xr-xr-x 1 root root 22615 Aug 30 2002 readline.so drwxr-xr-x 2 root root 4096 Sep 10 10:50 resources -r-xr-xr-x 1 root root 17193 Aug 30 2002 selectmodule.so -rwxr-xr-x 1 root root 67015 Aug 30 2002 strop.so -r-xr-xr-x 1 root root 26886 Aug 30 2002 structmodule.so -r-xr-xr-x 1 root root 20064 Aug 30 2002 termios.so -r-xr-xr-x 1 root root 19939 Aug 30 2002 timemodule.so -rwxr-xr-x 1 root root 241542 Sep 10 10:33 wxPython.calendarc.so -rwxr-xr-x 1 root root 1443747 Sep 10 10:33 wxPython.gizmosc.so -rwxr-xr-x 1 root root 820765 Sep 10 10:33 wxPython.gridc.so -rwxr-xr-x 1 root root 174711 Sep 10 10:33 wxPython.helpc.so -rwxr-xr-x 1 root root 608397 Sep 10 10:33 wxPython.htmlc.so -rwxr-xr-x 1 root root 6277757 Sep 10 10:33 wxPython.wxc.so -r-xr-xr-x 1 root root 21882 Aug 30 2002 zlibmodule.so On Windows I use py2exe to build this. On Linux I use cxFreeze. The cxFreeze author was trying to port it to Mac, but doesn't own one himself and so was using the SourceForge Mac servers which don't have very good availability. For what to do on Macs, see this message: http://mail.python.org/pipermail/pythonmac-sig/2003-November/009246.html Roger |
From: Steven P. <n9...@n9...> - 2003-12-04 16:10:34
|
On Dec 4, 2003, at 2:18 AM, Roger Binns wrote: >>>> pubsub.py: >>>> from wx.lib.pubsub import Publication >>> >>> It looks like pubsub is being changed somewhat drastically. >> >> I dunno, I never used the old version. > > The old version doesn't even have a Publication class/member whatever > that is. VERY Strange... I didn't change that bit of code except to make it wx.lib.pubsub isntead of wxPython.lib.pubsub. It was importing Publication in the code I had downloaded from CVS. Anyway, this is irrelevant since we're not going to be concerned about compatibility between versions at this time anyway. :-) > I am not going to switch over to wxPython probably until 2.5.1 > is release (the .0 versions always have issues). You are welcome > to maintain your own set of patches to work with 2.5 but I don't > think it is a particularly good use of your time, especially since > there haven't even been any beta releases yet. Well, it's a good use of my time if it allows me to use the project on my system, which I cannot use otherwise. ;-) I had tried to install the other versions of wxWindows/wxPython/etc and it didn't work, which is why I started down this road to make a version that did. But you are right, as far as the project itself goes, it is a waste of time because any changes that have no chance (any time soon) of getting into the development tree are indeed a waste of time to keep re-implementing. But for me, it works. > Something that is desperately needed on the Mac is to package > everything up into a normal Mac package. I will see what I can do. Theoretically, if everything is bundled right, you may even be able to take a given package and just drop the new .py modules into it to do an update. Maybe. I'm not sure. I'll get back to you on it. Thanks for all your great work, it *IS* much appreciated. Steve -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Alan G. <ago...@ya...> - 2003-12-04 14:25:41
|
I'm still here, just got distracted. The last thing I was messing with was outlook access through python. I haven't added any new features to my local copy of bitpim since the last updates i sent you. --- Roger Binns <ro...@ro...> wrote: > So what happened to the folks working on the LG VX10/TM520? > > Roger > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
From: Roger B. <ro...@ro...> - 2003-12-04 08:17:54
|
> I understand that, but is conditional code that difficult in Python? Not really but given two different wxPython versions on 3 plarforms it becomes a pain. >>> pubsub.py: >>> from wx.lib.pubsub import Publication >> >> It looks like pubsub is being changed somewhat drastically. > > I dunno, I never used the old version. The old version doesn't even have a Publication class/member whatever that is. >>> Calendar.attrevenmonth=CalendarCellAttributes() >>> Calendar.attroddmonth=CalendarCellAttributes() That fix is commited. > Understandable. I assume they are something like the NSNotification > objects in MacOS X. Very nice stuff, I use them all the time. If NSNotification is limited to the same process, then they are pretty much identical. > File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in > OnMergeCategories > cats=msg.data[:] > TypeError: unhashable type I think your code is a little behind. Do another CVS update. Note that the anonymous repository is around 5 hours behind the real one. I am not going to switch over to wxPython probably until 2.5.1 is release (the .0 versions always have issues). You are welcome to maintain your own set of patches to work with 2.5 but I don't think it is a particularly good use of your time, especially since there haven't even been any beta releases yet. Something that is desperately needed on the Mac is to package everything up into a normal Mac package. The instructions at http://videogamexchange.com/sites/lg4400/ aren't really acceptable. On Windows you just run the setup.exe and on Linux you just install the RPM. Neither has any external dependencies (Python, wxPython and the other libraries are all bundled inside). I would do this on the Mac myself except I don't have one and they are way to expensive for me to acquire. If you know how to build Mac packages, your assistance will be greatly appreciated. I have collected some links on how to do it, I just need someone to do it. Roger |
From: Steven P. <n9...@n9...> - 2003-12-04 01:07:59
|
On Dec 3, 2003, at 4:04 PM, Roger Binns wrote: >> It shouldn't affect it's ability to run with 2.4.x at all. > > Sadly that isn't true. I meant more in line with the issue of using wx functions before the wxApp is initialized. That part should be compatible across versions of wx. What I wasn't sure of when I wrote/thought that was how much extra changes would be required. >> Global in all .py files: >> DrawText( becomes DrawTextXY( >> DrawBitmap( becomes DrawBitmapXY( >> DrawRotatedText( becomes DrawRotatedTextXY( >> DrawLine(x1, y1, x2, y2) becomes DrawLine((x1, y1), (x2, >> y2)) > > The XY methods are not present in 2.4 so there would have to > be conditional code depending on the wx version. I am definitely > not going to put that in while developers would still have to > compile their own copy of wxPython. I understand that, but is conditional code that difficult in Python? I ask not to be a wise guy, but I really don't know. I just started working with Python last night when trying to get this thing running on my system. >> pubsub.py: >> from wx.lib.pubsub import Publication > > It looks like pubsub is being changed somewhat drastically. I dunno, I never used the old version. >> Calendar.attrevenmonth=CalendarCellAttributes() >> Calendar.attroddmonth=CalendarCellAttributes() > > I can see the wx issues with having those as class variables and > will put in a fix. Thanks. >> phonebook.py / phonebookeditor.py: >> remove pubsub references for now > > pubsub is needed for things to work correctly. The program > will appear to run without it, but the category list will > end up being blank and being saved out that way. I am > also about to use it for maintaining the lists of wallpaper > and ringtones. Understandable. I assume they are something like the NSNotification objects in MacOS X. Very nice stuff, I use them all the time. Anyway, here is the error dump I get: An unexpected exception has occurred. Please see the help for details on what to do. Traceback (most recent call last): File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 239, in OnClose self.goforit() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 236, in goforit self.app.makemainwindow() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 315, in makemainwindow frame=MainWindow(None, -1, "BitPim", self.config) File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 524, in __init__ self.OnPopulateEverythingFromDisk() File "/Users/n9yty/my_cvs/bitpim/bitpim/gui.py", line 792, in OnPopulateEverythingFromDisk self.phonewidget.populate(results) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 542, in populate pubsub.publish(pubsub.MERGE_CATEGORIES, dict.get('groups', [])) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 72, in publish Publisher.sendMessage(topic, data) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wx/lib/pubsub.py", line 141, in sendMessage subscriber[2](message) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/wx/lib/pubsub.py", line 169, in <lambda> return lambda m, f=function: f(m) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 57, in call return self.__call__(argument) File "/Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py", line 51, in __call__ return getattr(obj, self.methodname)(*args, **kwargs) File "/Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py", line 312, in OnMergeCategories cats=msg.data[:] TypeError: unhashable type Variables by last 6 frames, innermost last Frame publish in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 72 topic = ('request', 'mergecategories') data = {} Frame sendMessage in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wx/lib/pubsub.py at line 141 topic = ('request', 'mergecategories') self = <wx.lib.pubsub.Publisher instance at 0x50e22d8> aTopic = <Topic>'request', 'mergecategories'</Topic> subscriber = (<bound method _weaklistener.call of <pubsub._weaklistener i topicList = [(<bound method _weaklistener.call of <pubsub._weaklistener message = <wx.lib.pubsub.Message instance at 0x891e8f0> data = {} Frame <lambda> in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/wx/lib/pubsub.py at line 169 m = <wx.lib.pubsub.Message instance at 0x891e8f0> f = <bound method _weaklistener.call of <pubsub._weaklistener in Frame call in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 57 self = <pubsub._weaklistener instance at 0x50eb5d0> argument = <wx.lib.pubsub.Message instance at 0x891e8f0> Frame __call__ in /Users/n9yty/my_cvs/bitpim/bitpim/pubsub.py at line 51 self = <pubsub._weaklistener instance at 0x50eb5d0> args = (<wx.lib.pubsub.Message instance at 0x891e8f0>,) obj = <phonebook.CategoryManager instance at 0x50b3ad0> kwargs = {} Frame OnMergeCategories in /Users/n9yty/my_cvs/bitpim/bitpim/phonebook.py at line 312 msg = <wx.lib.pubsub.Message instance at 0x891e8f0> self = <phonebook.CategoryManager instance at 0x50b3ad0> -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Roger B. <ro...@ro...> - 2003-12-03 22:04:32
|
> Is there any interest in making this > forward compatible with the upcoming 2.5.x release of wxPython?? There haven't been any releases of 2.5 yet (not even betas) so I haven't been touching it (yet). Once 2.5 is available I do want to move to it quickly. > It shouldn't affect it's ability to run with 2.4.x at all. Sadly that isn't true. > Global in all .py files: > DrawText( becomes DrawTextXY( > DrawBitmap( becomes DrawBitmapXY( > DrawRotatedText( becomes DrawRotatedTextXY( > DrawLine(x1, y1, x2, y2) becomes DrawLine((x1, y1), (x2, y2)) The XY methods are not present in 2.4 so there would have to be conditional code depending on the wx version. I am definitely not going to put that in while developers would still have to compile their own copy of wxPython. > pubsub.py: > from wx.lib.pubsub import Publication It looks like pubsub is being changed somewhat drastically. > Calendar.attrevenmonth=CalendarCellAttributes() > Calendar.attroddmonth=CalendarCellAttributes() I can see the wx issues with having those as class variables and will put in a fix. > phonebook.py / phonebookeditor.py: > remove pubsub references for now pubsub is needed for things to work correctly. The program will appear to run without it, but the category list will end up being blank and being saved out that way. I am also about to use it for maintaining the lists of wallpaper and ringtones. Roger |
From: Steven P. <n9...@n9...> - 2003-12-03 21:33:08
|
On Dec 3, 2003, at 3:21 PM, Steven Palm wrote: > calendarcontrol.py: > Class Calendar(wxPanel): > . > . > . > def initvars(self): > Calendar.attrevenmonth=CalendarCellAttributes() > Calendar.attroddmonth=CalendarCellAttributes() > > > Calendar.attroddmonth.cellbackground=wxTheBrushList.FindOrCreateBrush( > wxColour(255, 255, 230), wxSOLID) > Calendar.attrselectedcell=CalendarCellAttributes() > > > Calendar.attrselectedcell.cellbackground=wxTheBrushList.FindOrCreateBru > sh( wxColour(240,240,240), wxSOLID) > Calendar.attrselectedcell.labelfont=wxFont(17, wxSWISS, wxNORMAL, > wxBOLD ) > Calendar.attrselectedcell.labelforeground=wxNamedColour("BLACK") Oh yeah! And also add: in def __init__(self): self.initvars() I also had to change two wxTextAttr(font=f) to wxTextAttr(wxBLACK, wxNullColour, f) in guiwidgets.py because it wasn't recognizing font= as a valid parameter label. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |
From: Steven P. <n9...@n9...> - 2003-12-03 21:22:04
|
On Dec 3, 2003, at 10:19 AM, Steven Palm wrote: > I am just learning Python, and don't know enough yet to find a > workaround for this issue. Is there any interest in making this > forward compatible with the upcoming 2.5.x release of wxPython?? It > shouldn't affect it's ability to run with 2.4.x at all. I've surprised myself and managed to plod along enough to figure it out. Here are my changes (so far!) to get it working. By removing the pubsub stuff, I can get basic functionality to work with these changes. I don't have a phone yet, so I cannot test serial communications and the like, but the program itself seems to operate now with wxPython 2.5.1 fromCVS. These are cryptic notes, I admit, but hopefully enough to go by.... Global in all .py files: DrawText( becomes DrawTextXY( DrawBitmap( becomes DrawBitmapXY( DrawRotatedText( becomes DrawRotatedTextXY( DrawLine(x1, y1, x2, y2) becomes DrawLine((x1, y1), (x2, y2)) pubsub.py: from wx.lib.pubsub import Publication calendarcontrol.py: Class Calendar(wxPanel): . . . def initvars(self): Calendar.attrevenmonth=CalendarCellAttributes() Calendar.attroddmonth=CalendarCellAttributes() Calendar.attroddmonth.cellbackground=wxTheBrushList.FindOrCreateBrush( wxColour(255, 255, 230), wxSOLID) Calendar.attrselectedcell=CalendarCellAttributes() Calendar.attrselectedcell.cellbackground=wxTheBrushList.FindOrCreateBrus h( wxColour(240,240,240), wxSOLID) Calendar.attrselectedcell.labelfont=wxFont(17, wxSWISS, wxNORMAL, wxBOLD ) Calendar.attrselectedcell.labelforeground=wxNamedColour("BLACK") gui.py: + import sys #import wxPython.help # import wxPython.gizmosc as gizmosc - from wxPython.htmlhelp import wxHtmlHelpController + from wxPython.html import wxHtmlHelpController dc.DrawText( becomes dc.DrawTextXY phonebook.py / phonebookeditor.py: remove pubsub references for now I have to look into the pubsub stuff.... -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |