On Wed, Apr 27, 2005 at 12:33:20PM -0500, Art Haas wrote:
> All the new Action and ActionGroup class stuff is available in GTK+
> from the 2.4 release, and the PyGTK 2.4 release as well. Now, for people
> still using older GTK+ and PyGTK releases, I've written replacement
> classes that provide the basic functionality of the Action and
> ActionGroup classes. This code is in the new 'gtkactions.py' file, and
> is meant to provide similar if slightly limited functionality as the true
> GTK+ classes but enough to build the menus, and my limited testing
> demonstrated it worked well enough. However, the testing is on my
> machine using the GTK+ 2.6.4 release and the 2.6.1 PyGTK version (both
> from Debian unstable), so it is likely that I've missed something. As I
> don't know how many people run PythonCAD on machines using GTK+ and
> PyGTK releases prior to 2.4, both of which are quite old, I'm not sure
> if lurking bugs will be found because the code may not be run on these
> older versions.

I just tried things out on a Fedora Core 3 machine - GTK+ and PyGTK
version 2.4 - and found that the use of set_sensitive() method didn't
work. A quick check of the PyGTK reveals this call is only valid in
PyGTK-2.6, so I've replaced these calls with set_property() calls
using 'sensitive' as an argument and things work on the Fedora machine.
I guess Fedora Core 2 probably has older GTK+ and PyGTK releases so the
gtkaction compatiblity code would be used there. Can anyone confirm
this?

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
_______________________________________________
PythonCAD mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythoncad

Reply via email to