RE: [Pythoncard-users] Can't save from Resource Editor..
by Hutchins, Mike other posts by this author
Jan 13 2003 3:16PM messages near this date
RE: [Pythoncard-users] component docs in widgets sample, release later today
|
[Pythoncard-users] Can't save from Resource Editor..
I sincerely apologize for my lack of brain cells. I should have RTFW..
For those of that don't know, here is the cause and solution..
Date: 2003-01-12 15:41
Sender: kasplat
Logged In: YES
user_id=228025
this is also fixed by upgrading to wxPython 2.4.0.1
Date: 2003-01-03 14:38
Sender: kasplat
Logged In: YES
user_id=228025
It isn't just saving that is a problem, the View-> Resource...
menu item won't work either because it also uses
resourceOutput.py to build a resource for display to the user.
It turns out this bug is due to a change in wxPython between
2.3.3.1 and 2.3.4.2. Robin added __eq__ and __ne__
methods to wxColourPtr in gdi.py so that an exception gets
thrown if you try and do an equality comparison against an
object of a different type. This may actually be a bug, but
there is a workaround for PythonCard.
Simply replace the elif statement on line 65 of
PythonCardPrototype\tools\resourceEditor\modules\resource
Output.py
elif getattr(aWidget, key) != None:
with
elif getattr(aWidget, key) is not None:
By coincidence, I had just replaced all occurances of '==
None' with 'is None' and '!= None' with 'is not None' for all
the
PythonCard code yesterday and those changes are now
checked into cvs. So, if you're using the cvs version of
PythonCard then you just need to do an update and the
problem goes away.
I am planning on getting a 0.7 release out within the next few
weeks.
-----Original Message-----
From: gianni@[...].it [mailto:gianni@[...].it]
Sent: Monday, January 13, 2003 8:06 AM
To: Hutchins, Mike
Subject: Re: [Pythoncard-users] Can't save from Resource Editor..
I've the same problems under win2000...
Please post the solution if U resolve...
On Mon, Jan 13, 2003 at 07:53:54AM -0700, Hutchins, Mike wrote:
> If I try to save from resource editor it doesn't save. I tried "Save
> as" no such luck. Anyone seen this?
--
Gianni Olivieri |
gianni@[...].it | Debian GNU/Linux
http://gianni.cln.it | Sys Admin . Programmer . Web design
Mi piace che mi grandini sul viso
la fitta sassaiola dell'ingiuria,
l'agguanto solo per sentirmi vivo
al guscio della mia capigliatura
[A. Branduardi]
- firma generata casualmente -
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
|