|
From: Jonathan B. <jbr...@ea...> - 2004-11-13 22:10:28
|
Please use plain-text email in the future. On Sat, 2004-11-13 at 16:31 -0500, Jon Schull wrote: > > > ______________________________________________________________________ > > Greetings > > I'm playing with visual.controls and want to mention 3 issues. > ####### Issue1: I can't position the controls window. Help? This is because Gtk+ version 1.2 does not support moving windows from within the program itself at all. Even under Gtk+ 2.0, moving a window only represents a request to the window manager to do so, and the window manager may not honor your request. > ###### Issue2: it is apparently impossible to subclass vpython > objects. > ###### > http://mail.python.org/pipermail/tutor/2002-November/018952.html The poster in that thread was correct - a visual.sphere was not a class at all, but a free function that returned a cvisual.DisplayObject, which could not be safely subclassed. Thanks to Boost.Python, that is no longer the case. See the thread "Subclassing cvisual classes is cool" from August 1, 2004. Be sure to read my reply, since that represents the "official" documentation at this time. At some point, a section will be added to the documentation under a title like "Advanced Topics" or somesuch that will talk about subclassing Visual classes and other things. > ###### Issue3: > ###### But I can simulate the effect I want by adding attributes > (including methods) to an object. FYI. > ###### (This should be documented shouldn't it?) Comment? This has been a standard property of all Python classes since at least Python 2.2. HTH, -Jonathan Brandmeyer |