Why shapes are draggable in ogl?

Hi
Does anyone knows why the shapes created by ogl are draggable automatically?
For example,
import wx
import wx.lib.ogl as ogl

class AppFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__( self,
                          None, -1, "Demo",
                          size=(300,200),
                          style=wx.DEFAULT_FRAME_STYLE )
        sizer = wx.BoxSizer( wx.VERTICAL )
        # put stuff into sizer

        canvas = ogl.ShapeCanvas( self )
        sizer.Add( canvas, 1, wx.GROW )

        canvas.SetBackgroundColour( "LIGHT BLUE" ) #

        diagram = ogl.Diagram()
        canvas.SetDiagram( diagram )
        diagram.SetCanvas( canvas )

        shape = ogl.CircleShape( 20.0 ) #
        shape.SetX( 25.0 ) #
        shape.SetY( 25.0 ) #
        canvas.AddShape( shape ) #
        diagram.ShowAll( 1 ) #

        # apply sizer
        self.SetSizer(sizer)
        self.SetAutoLayout(1)
        self.Show(1)

app = wx.PySimpleApp()
ogl.OGLInitialize()
frame = AppFrame()
app.MainLoop()
app.Destroy()

in this demo, the shape is just created, there isn't any action to set it
draggable, but actually, it's draggable, can you explain this? And how to
create static shapes using ogl?

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Why-shapes-are-draggable-in-ogl-tp5717170.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Gabrielle wrote:

Does anyone knows why the shapes created by ogl are draggable automatically?

Because they are. That's usually what you want. The designer has to
make some default choice (either "yes" or "no"). In this case, he chose
"yes".

in this demo, the shape is just created, there isn't any action to set it
draggable, but actually, it's draggable, can you explain this? And how to
create static shapes using ogl?

Have you read the documentation?
    shape.SetDraggable( False )

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

I read the doc after this question... Now I know I can use
SetDraggable(False) to make the shape static
Thanks

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Why-shapes-are-draggable-in-ogl-tp5717170p5717208.html
Sent from the wxPython-users mailing list archive at Nabble.com.