what does 'keys' mean?

Hi

Can you tell me what 'keys' and 'attachment' mean here?
OnLeftDoubleClick(self,x,y,keys,attachment)

If attachment=0, there is no attachment. If attachment=1, there is
attachment, and the OnLeftDoubleClick will do the same thing at the same
time to attachment, do I make the right understanding?

And for 'keys', I have no idea.

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/what-does-keys-mean-tp5717287.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Hi,

Searching through public projects on http://code.google.com can be helpful in situations like this. Have a look at this and see if it helps.

http://code.google.com/p/pyfpdf/source/browse/designer.py?name=gif

I hope this helps a little. Good luck.

Cheers,
Scott.

···

On Sun, May 5, 2013 at 9:53 PM, Gabrielle xuan901031@gmail.com wrote:

Hi

Can you tell me what ‘keys’ and ‘attachment’ mean here?

OnLeftDoubleClick(self,x,y,keys,attachment)

If attachment=0, there is no attachment. If attachment=1, there is

attachment, and the OnLeftDoubleClick will do the same thing at the same

time to attachment, do I make the right understanding?

And for ‘keys’, I have no idea.

View this message in context: http://wxpython-users.1045709.n5.nabble.com/what-does-keys-mean-tp5717287.html

Sent from the wxPython-users mailing list archive at Nabble.com.

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Gabrielle wrote:

Can you tell me what 'keys' and 'attachment' mean here?
OnLeftDoubleClick(self,x,y,keys,attachment)

If attachment=0, there is no attachment. If attachment=1, there is
attachment, and the OnLeftDoubleClick will do the same thing at the same
time to attachment, do I make the right understanding?

And for 'keys', I have no idea.

You have the COMPLETE SOURCE CODE for the ogl library right there in
front of you. It's all present on your computer. You can look this
stuff up, and learn something about the way the code is structured while
you're looking.

"attachment" will be 0 if the mouse click was not close to an object.
It will be non-zero if there is an object nearby.

"keys" is a mask telling you whether the Shift, Ctrl, and/or Alt keys
were pressed when the mouse click happened.

···

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