Package wx :: Class ContextMenuEvent
[frames | no frames]

Type ContextMenuEvent

object --+            
         |            
    Object --+        
             |        
         Event --+    
                 |    
      CommandEvent --+
                     |
                    ContextMenuEvent


This class is used for context menu events (EVT_CONTECT_MENU,) sent to give the application a chance to show a context (popup) menu.


Method Summary
ContextMenuEvent __init__(self, type, winid, pt)
Constructor.
  __repr__(self)
Point GetPosition(self)
Returns the position (in screen coordinants) at which the menu should be shown.
  SetPosition(self, pos)
Sets the position at which the menu should be shown.

Method Details

__init__(self, type=wxEVT_NULL, winid=0, pt=DefaultPosition)
(Constructor)

Constructor.

Parameters:
type
           (type=wxEventType)

winid
           (type=int)

pt
           (type=Point)

Returns:
ContextMenuEvent
Overrides:
wx.CommandEvent.__init__

GetPosition(self)

Returns the position (in screen coordinants) at which the menu should be shown.

Returns:
Point

SetPosition(self, pos)

Sets the position at which the menu should be shown.

Parameters:
pos
           (type=Point)


Generated by Epydoc 2.1.20050511.rpd on Sun Mar 26 10:01:14 2006 http://epydoc.sf.net