OpenGLContext.wxcontext
index
p:\openglcontext\wxcontext.py

Context functionality under the wxPython GUI environment

 
Modules
            
OpenGLContext.context
wxPython.glcanvasc
OpenGLContext.events.wxevents

 
Classes
            
Context
wxContext(wxGLCanvas, EventHandlerMixin, Context)
EventHandlerMixin(EventHandlerMixin)
wxContext(wxGLCanvas, EventHandlerMixin, Context)
wxGLCanvas(wxGLCanvasPtr)
wxContext(wxGLCanvas, EventHandlerMixin, Context)

 
class wxContext(wxGLCanvas, EventHandlerMixin, Context)
      Sub-class of Context providing basic Context API under wxPython
 
  
AcceptsFocus(self, *_args, **_kwargs) from wxWindowPtr
AddPendingEvent(self, *_args, **_kwargs) from wxEvtHandlerPtr
AdjustScrollbars(self, *_args, **_kwargs) from wxScrolledWindowPtr
Background(self, mode=1) from Context
CalcScrolledPosition(self, *_args, **_kwargs) from wxScrolledWindowPtr
CalcUnscrolledPosition(self, *_args, **_kwargs) from wxScrolledWindowPtr
CaptureMouse(self, *_args, **_kwargs) from wxWindowPtr
Center(self, *_args, **_kwargs) from wxWindowPtr
CenterOnParent(self, *_args, **_kwargs) from wxWindowPtr
CenterOnScreen(self, *_args, **_kwargs) from wxWindowPtr
Centre(self, *_args, **_kwargs) from wxWindowPtr
CentreOnParent(self, *_args, **_kwargs) from wxWindowPtr
CentreOnScreen(self, *_args, **_kwargs) from wxWindowPtr
ClientToScreen(self, *_args, **_kwargs) from wxWindowPtr
ClientToScreenXY(self, *_args, **_kwargs) from wxWindowPtr
Close(self, *_args, **_kwargs) from wxWindowPtr
Connect(self, *_args, **_kwargs) from wxEvtHandlerPtr
ConvertDialogPointToPixels(self, *_args, **_kwargs) from wxWindowPtr
ConvertDialogSizeToPixels(self, *_args, **_kwargs) from wxWindowPtr
ConvertPixelPointToDialog(self, *_args, **_kwargs) from wxWindowPtr
ConvertPixelSizeToDialog(self, *_args, **_kwargs) from wxWindowPtr
DLG_PNT(self, *_args, **_kwargs) from wxWindowPtr
DLG_SZE(self, *_args, **_kwargs) from wxWindowPtr
Destroy(self, *_args, **_kwargs) from wxWindowPtr
DestroyChildren(self, *_args, **_kwargs) from wxWindowPtr
Disconnect(self, *_args, **_kwargs) from wxEvtHandlerPtr
DoEventCascade(self) from EventHandlerMixin
DragAcceptFiles(self, *_args, **_kwargs) from wxWindowPtr
Enable(self, *_args, **_kwargs) from wxWindowPtr
EnableScrolling(self, *_args, **_kwargs) from wxScrolledWindowPtr
FindWindowById(self, *_args, **_kwargs) from wxWindowPtr
FindWindowByName(self, *_args, **_kwargs) from wxWindowPtr
Fit(self, *_args, **_kwargs) from wxWindowPtr
GetAutoLayout(self, *_args, **_kwargs) from wxWindowPtr
GetBackgroundColour(self, *_args, **_kwargs) from wxWindowPtr
GetBestSize(self, *_args, **_kwargs) from wxWindowPtr
GetCaret(self, *_args, **_kwargs) from wxWindowPtr
GetCharHeight(self, *_args, **_kwargs) from wxWindowPtr
GetCharWidth(self, *_args, **_kwargs) from wxWindowPtr
GetChildren(self, *_args, **_kwargs) from wxWindowPtr
GetClassName(self, *_args, **_kwargs) from wxObjectPtr
GetClientSize(self, *_args, **_kwargs) from wxWindowPtr
GetClientSizeTuple(self, *_args, **_kwargs) from wxWindowPtr
GetConstraints(self, *_args, **_kwargs) from wxWindowPtr
GetContext(self, *_args, **_kwargs) from wxGLCanvasPtr
GetDefaultItem(self, *_args, **_kwargs) from wxPanelPtr
GetDropTarget(self, *_args, **_kwargs) from wxWindowPtr
GetEventHandler(self, *_args, **_kwargs) from wxWindowPtr
GetEvtHandlerEnabled(self, *_args, **_kwargs) from wxEvtHandlerPtr
GetFont(self, *_args, **_kwargs) from wxWindowPtr
GetForegroundColour(self, *_args, **_kwargs) from wxWindowPtr
GetFullTextExtent(self, *_args, **_kwargs) from wxWindowPtr
GetGrandParent(self, *_args, **_kwargs) from wxWindowPtr
GetHandle(self, *_args, **_kwargs) from wxWindowPtr
GetId(self, *_args, **_kwargs) from wxWindowPtr
GetLabel(self, *_args, **_kwargs) from wxWindowPtr
GetName(self, *_args, **_kwargs) from wxWindowPtr
GetNextHandler(self, *_args, **_kwargs) from wxEvtHandlerPtr
GetParent(self, *_args, **_kwargs) from wxWindowPtr
GetPosition(self, *_args, **_kwargs) from wxWindowPtr
GetPositionTuple(self, *_args, **_kwargs) from wxWindowPtr
GetPreviousHandler(self, *_args, **_kwargs) from wxEvtHandlerPtr
GetRect(self, *_args, **_kwargs) from wxWindowPtr
GetScaleX(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetScaleY(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetScrollPageSize(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetScrollPixelsPerUnit(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetScrollPos(self, *_args, **_kwargs) from wxWindowPtr
GetScrollRange(self, *_args, **_kwargs) from wxWindowPtr
GetScrollThumb(self, *_args, **_kwargs) from wxWindowPtr
GetSize(self, *_args, **_kwargs) from wxWindowPtr
GetSizeTuple(self, *_args, **_kwargs) from wxWindowPtr
GetSizer(self, *_args, **_kwargs) from wxWindowPtr
GetTargetWindow(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetTextExtent(self, *_args, **_kwargs) from wxWindowPtr
GetTitle(self, *_args, **_kwargs) from wxWindowPtr
GetToolTip(self, *_args, **_kwargs) from wxWindowPtr
GetUpdateRegion(self, *_args, **_kwargs) from wxWindowPtr
GetValidator(self, *_args, **_kwargs) from wxWindowPtr
GetViewStart(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetVirtualSize(self, *_args, **_kwargs) from wxScrolledWindowPtr
GetWindowStyleFlag(self, *_args, **_kwargs) from wxWindowPtr
Hide(self, *_args, **_kwargs) from wxWindowPtr
InitDialog(self, *_args, **_kwargs) from wxPanelPtr
IsBeingDeleted(self, *_args, **_kwargs) from wxWindowPtr
IsEnabled(self, *_args, **_kwargs) from wxWindowPtr
IsExposed(self, *_args, **_kwargs) from wxWindowPtr
IsExposedPoint(self, *_args, **_kwargs) from wxWindowPtr
IsExposedRect(self, *_args, **_kwargs) from wxWindowPtr
IsRetained(self, *_args, **_kwargs) from wxScrolledWindowPtr
IsShown(self, *_args, **_kwargs) from wxWindowPtr
IsTopLevel(self, *_args, **_kwargs) from wxWindowPtr
Layout(self, *_args, **_kwargs) from wxWindowPtr
Lights(self, mode=1) from Context
LoadFromResource(self, *_args, **_kwargs) from wxWindowPtr
Lower(self, *_args, **_kwargs) from wxWindowPtr
MakeModal(self, *_args, **_kwargs) from wxWindowPtr
Move(self, *_args, **_kwargs) from wxWindowPtr
MoveXY(self, *_args, **_kwargs) from wxWindowPtr
OnDraw(self, *arguments) from Context
OnInit(self) from Context
OnResize(self, *arguments) from Context
PopEventHandler(self, *_args, **_kwargs) from wxWindowPtr
PopupMenu(self, *_args, **_kwargs) from wxWindowPtr
PopupMenuXY(self, *_args, **_kwargs) from wxWindowPtr
PrepareDC(self, *_args, **_kwargs) from wxScrolledWindowPtr
ProcessEvent(self, event)
Dispatch events to the appropriate event handling engine based on the event type
 
Because the method named "ProcessEvent" is used by both
wxPython and the OpenGLContext.events package, we need to
dispatch to the appropriate handler when the method is called.
PushEventHandler(self, *_args, **_kwargs) from wxWindowPtr
Raise(self, *_args, **_kwargs) from wxWindowPtr
Refresh(self, *_args, **_kwargs) from wxWindowPtr
ReleaseMouse(self, *_args, **_kwargs) from wxWindowPtr
RemoveChild(self, *_args, **_kwargs) from wxWindowPtr
Render(self, mode=1) from Context
Reparent(self, *_args, **_kwargs) from wxWindowPtr
ScreenToClient(self, *_args, **_kwargs) from wxWindowPtr
ScreenToClientXY(self, *_args, **_kwargs) from wxWindowPtr
Scroll(self, *_args, **_kwargs) from wxScrolledWindowPtr
ScrollWindow(self, *_args, **_kwargs) from wxWindowPtr
SetAcceleratorTable(self, *_args, **_kwargs) from wxWindowPtr
SetAutoLayout(self, *_args, **_kwargs) from wxWindowPtr
SetBackgroundColour(self, *_args, **_kwargs) from wxWindowPtr
SetCaret(self, *_args, **_kwargs) from wxWindowPtr
SetClientSize(self, *_args, **_kwargs) from wxWindowPtr
SetClientSizeWH(self, *_args, **_kwargs) from wxWindowPtr
SetColour(self, *_args, **_kwargs) from wxGLCanvasPtr
SetConstraints(self, *_args, **_kwargs) from wxWindowPtr
SetCurrent(self, *_args, **_kwargs) from wxGLCanvasPtr
SetCursor(self, *_args, **_kwargs) from wxWindowPtr
SetDefaultItem(self, *_args, **_kwargs) from wxPanelPtr
SetDimensions(self, *_args, **_kwargs) from wxWindowPtr
SetDropTarget(self, *_args, **_kwargs) from wxWindowPtr
SetEventHandler(self, *_args, **_kwargs) from wxWindowPtr
SetEvtHandlerEnabled(self, *_args, **_kwargs) from wxEvtHandlerPtr
SetExtraStyle(self, *_args, **_kwargs) from wxWindowPtr
SetFocus(self, *_args, **_kwargs) from wxWindowPtr
SetFont(self, *_args, **_kwargs) from wxWindowPtr
SetForegroundColour(self, *_args, **_kwargs) from wxWindowPtr
SetId(self, *_args, **_kwargs) from wxWindowPtr
SetLabel(self, *_args, **_kwargs) from wxWindowPtr
SetName(self, *_args, **_kwargs) from wxWindowPtr
SetNextHandler(self, *_args, **_kwargs) from wxEvtHandlerPtr
SetPosition(self, *_args, **_kwargs) from wxWindowPtr
SetPreviousHandler(self, *_args, **_kwargs) from wxEvtHandlerPtr
SetRect(self, *_args, **_kwargs) from wxWindowPtr
SetScale(self, *_args, **_kwargs) from wxScrolledWindowPtr
SetScrollPageSize(self, *_args, **_kwargs) from wxScrolledWindowPtr
SetScrollPos(self, *_args, **_kwargs) from wxWindowPtr
SetScrollbar(self, *_args, **_kwargs) from wxWindowPtr
SetScrollbars(self, *_args, **_kwargs) from wxScrolledWindowPtr
SetSize(self, *_args, **_kwargs) from wxWindowPtr
SetSizeHints(self, *_args, **_kwargs) from wxWindowPtr
SetSizer(self, *_args, **_kwargs) from wxWindowPtr
SetTargetWindow(self, *_args, **_kwargs) from wxScrolledWindowPtr
SetTitle(self, *_args, **_kwargs) from wxWindowPtr
SetToolTip(self, *_args, **_kwargs) from wxWindowPtr
SetToolTipString(self, *_args, **_kwargs) from wxWindowPtr
SetValidator(self, *_args, **_kwargs) from wxWindowPtr
SetWindowStyle(self, *_args, **_kwargs) from wxWindowPtr
SetWindowStyleFlag(self, *_args, **_kwargs) from wxWindowPtr
Show(self, *_args, **_kwargs) from wxWindowPtr
SwapBuffers(self, *_args, **_kwargs) from wxGLCanvasPtr
TransferDataFromWindow(self, *_args, **_kwargs) from wxWindowPtr
TransferDataToWindow(self, *_args, **_kwargs) from wxWindowPtr
UnsetConstraints(self, *_args, **_kwargs) from wxWindowPtr
Validate(self, *_args, **_kwargs) from wxWindowPtr
ViewPort(self, width, height) from Context
ViewStart(self, *_args, **_kwargs) from wxScrolledWindowPtr
Viewpoint(self, mode=1) from Context
WarpPointer(self, *_args, **_kwargs) from wxWindowPtr
__init__(self, parent, id=-1, pos=(-1, -1), size=(-1, -1), style=0, name='GLContext')
__repr__(self) from wxGLCanvasPtr
addEventHandler(self, eventType, *arguments, **namedarguments) from EventHandlerMixin
addEventManager(self, eventType, manager=None) from EventHandlerMixin
addPickEvent(self, event) from Context
addTransparentObject(self, object) from Context
captureEvents(self, eventType, manager=None) from EventHandlerMixin
getEventManager(self, eventType) from EventHandlerMixin
getTimeManager(self) from EventHandlerMixin
getViewPort(self) from Context
initializeEventManagers(self) from EventHandlerMixin
setCurrent(self)
 Acquire the GL "focus"
setupCallbacks(self)
Setup the various callbacks for this context
setupDefaultEventCallbacks(self) from Context
shouldRedraw(self) from Context
suppressRedraw(self) from Context
triggerPick(self) from Context
triggerRedraw(self, force=0) from Context
unProject(self, x, y, z) from Context
unsetCurrent(self) from Context
wxOnCharacter(self, event) from EventHandlerMixin
wxOnEraseBackground(self, event)
Prevent flashing of the window by capturing and ignoring background erase events
wxOnIdle(self, event)
Handle wxPython idle event notification
wxOnKeyDown(self, event) from EventHandlerMixin
wxOnKeyUp(self, event) from EventHandlerMixin
wxOnMouseButton(self, event) from EventHandlerMixin
wxOnMouseMove(self, event) from EventHandlerMixin
wxOnPaint(self, event)
 Called once for each paint event,
this method needs to do all of the processing required
to display the OpenGL scene in the context.
wxOnSize(self, event)
Handle window re-size event

 
Data
             __file__ = r'p:\OpenGLContext\wxcontext.pyc'
__name__ = 'OpenGLContext.wxcontext'
cvar = <Global variables>