Dear Chris,
> Shouldn't be a problem. All NavCanvas does is add the toolbar. The
> toolbar then sets the Mode on FloatCanvas, so all you need to do is set
> the FloatCanvas mode the same way that NavCanvas does it.
Okay, i've read up on that and i think i got a grasp of it now.
I've changed my Workspace class so that the binding looks like this now:
def OnMouseMotion(self, event):
if event.RightIsDown():
import GUIMode
self.canvas.SetMode(Mode=GUIMode.GUIMove(self.canvas))
I know the import might be somewhat braindead in that location, i will
put that somewhere else when done experimenting and it works.
However i get the following error:
File "workspace.py", line 454, in OnMouseMotion
import GUIMode
ImportError: No module named GUIMode
At the start of the file, i made sure i have the same imports as in
NavCanvas.py.
I've been tinkering with that well above an hour now and not been able
to resolve it. What might be wrong?
Maybe i should add that in the meanwhile i installed the latest
FloatCanvas Version from SVN, as far as i understood it, GUIMode isn't
available in older versions.
> I've done a pathetic job of keeping the version in the wxPython distro
> up to date -- you've now given me a reason why I should try harder.
:-)
Greetings,
--
Dipl.-Inf. Niels Menke
Universität Kassel
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas