| |
- BaseContext(Propertied)
-
- BaseContext
- wxFrame(wxFramePtr)
-
- DemoFrame
- wxPySimpleApp(wxApp)
-
- DemoApplication
class BaseContext(BaseContext) |
|
Base context holder for demo application
Just adds a "world" attribute to point to the currently-active world |
|
- Method resolution order:
- BaseContext
- BaseContext
- Propertied
- object
Data and other attributes defined here:
- world = <BasicProperty 'world'>
- pointer to the current world/root node
Data and other attributes inherited from BaseContext:
- action = <BasicProperty 'action'>
- The action associated with the context
- event = <BasicProperty 'event'>
- wxPython event which triggered the action or None
- window = <BasicProperty 'window'>
- The wxPython window associated with the context
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x024C3170>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class DemoApplication(wxPySimpleApp) |
| |
- Method resolution order:
- DemoApplication
- wxPySimpleApp
- wxApp
- wxPyApp
- wxPyAppPtr
- wxEvtHandlerPtr
- wxObjectPtr
Methods defined here:
- OnInit(self)
Methods inherited from wxPySimpleApp:
- __init__(self, flag=0)
Methods inherited from wxApp:
- MainLoop(self)
- RedirectStdio(self, filename)
- RestoreStdio(self)
- SetTopWindow(self, frame)
- __del__(self)
Data and other attributes inherited from wxApp:
- error = 'wxApp.error'
- outputWindowClass = <class wxPython.wx.wxPyOnDemandOutputWindow at 0x01187930>
Methods inherited from wxPyAppPtr:
- Dispatch(self, *_args, **_kwargs)
- ExitMainLoop(self, *_args, **_kwargs)
- GetAppName(self, *_args, **_kwargs)
- GetAssertMode(self, *_args, **_kwargs)
- GetAuto3D(self, *_args, **_kwargs)
- GetClassName(self, *_args, **_kwargs)
- GetExitOnFrameDelete(self, *_args, **_kwargs)
- GetPrintMode(self, *_args, **_kwargs)
- GetTopWindow(self, *_args, **_kwargs)
- GetUseBestVisual(self, *_args, **_kwargs)
- GetVendorName(self, *_args, **_kwargs)
- Initialized(self, *_args, **_kwargs)
- Pending(self, *_args, **_kwargs)
- ProcessIdle(self, *_args, **_kwargs)
- SetAppName(self, *_args, **_kwargs)
- SetAssertMode(self, *_args, **_kwargs)
- SetAuto3D(self, *_args, **_kwargs)
- SetClassName(self, *_args, **_kwargs)
- SetExitOnFrameDelete(self, *_args, **_kwargs)
- SetPrintMode(self, *_args, **_kwargs)
- SetUseBestVisual(self, *_args, **_kwargs)
- SetVendorName(self, *_args, **_kwargs)
- Yield(self, *_args, **_kwargs)
- __repr__(self)
Methods inherited from wxEvtHandlerPtr:
- AddPendingEvent(self, *_args, **_kwargs)
- Connect(self, *_args, **_kwargs)
- Disconnect(self, *_args, **_kwargs)
- GetEvtHandlerEnabled(self, *_args, **_kwargs)
- GetNextHandler(self, *_args, **_kwargs)
- GetPreviousHandler(self, *_args, **_kwargs)
- ProcessEvent(self, *_args, **_kwargs)
- SetEvtHandlerEnabled(self, *_args, **_kwargs)
- SetNextHandler(self, *_args, **_kwargs)
- SetPreviousHandler(self, *_args, **_kwargs)
Methods inherited from wxObjectPtr:
- Destroy(self, *_args, **_kwargs)
|
class DemoFrame(wxFrame) |
|
Main frame for the demo |
|
- Method resolution order:
- DemoFrame
- wxFrame
- wxFramePtr
- wxTopLevelWindowPtr
- wxWindowPtr
- wxEvtHandlerPtr
- wxObjectPtr
Methods defined here:
- CreateActionContext(self, event, action)
- Create a configui action context for this frame
All the real work is done in the MainframeContext class
which finds our selected objects, sub-windows, etceteras.
- CreateToolBar(self)
- Create the toolbar for the timeline/main view
- GetValue(self)
- OnStatusUpdate(self, event)
- Deal with an update to status text from a child
- SetValue(self, object)
- __init__(self, parent=None, id=-1, title='Pet Placer', size=(500, 600))
- buildMenu(self)
- Build menu from a menu data description
Methods inherited from wxFramePtr:
- Command = ProcessCommand(self, *_args, **_kwargs)
- Create(self, *_args, **_kwargs)
- CreateStatusBar(self, *_args, **_kwargs)
- DoGiveHelp(self, *_args, **_kwargs)
- GetClientAreaOrigin(self, *_args, **_kwargs)
- GetMenuBar(self, *_args, **_kwargs)
- GetStatusBar(self, *_args, **_kwargs)
- GetStatusBarPane(self, *_args, **_kwargs)
- GetToolBar(self, *_args, **_kwargs)
- PopStatusText(self, *_args, **_kwargs)
- ProcessCommand(self, *_args, **_kwargs)
- PushStatusText(self, *_args, **_kwargs)
- SendSizeEvent(self, *_args, **_kwargs)
- SetMenuBar(self, *_args, **_kwargs)
- SetStatusBar(self, *_args, **_kwargs)
- SetStatusBarPane(self, *_args, **_kwargs)
- SetStatusText(self, *_args, **_kwargs)
- SetStatusWidths(self, *_args, **_kwargs)
- SetToolBar(self, *_args, **_kwargs)
- __repr__(self)
Methods inherited from wxTopLevelWindowPtr:
- GetIcon(self, *_args, **_kwargs)
- GetTitle(self, *_args, **_kwargs)
- Iconize(self, *_args, **_kwargs)
- IsFullScreen(self, *_args, **_kwargs)
- IsIconized(self, *_args, **_kwargs)
- IsMaximized(self, *_args, **_kwargs)
- Maximize(self, *_args, **_kwargs)
- Restore(self, *_args, **_kwargs)
- SetIcon(self, *_args, **_kwargs)
- SetIcons(self, *_args, **_kwargs)
- SetShape(self, *_args, **_kwargs)
- SetTitle(self, *_args, **_kwargs)
- ShowFullScreen(self, *_args, **_kwargs)
Methods inherited from wxWindowPtr:
- AcceptsFocus(self, *_args, **_kwargs)
- AddChild(self, *_args, **_kwargs)
- CaptureMouse(self, *_args, **_kwargs)
- Center(self, *_args, **_kwargs)
- CenterOnParent(self, *_args, **_kwargs)
- CenterOnScreen(self, *_args, **_kwargs)
- Centre(self, *_args, **_kwargs)
- CentreOnParent(self, *_args, **_kwargs)
- CentreOnScreen(self, *_args, **_kwargs)
- Clear(self, *_args, **_kwargs)
- ClientToScreen(self, *_args, **_kwargs)
- ClientToScreenXY(self, *_args, **_kwargs)
- Close(self, *_args, **_kwargs)
- ConvertDialogPointToPixels(self, *_args, **_kwargs)
- ConvertDialogSizeToPixels(self, *_args, **_kwargs)
- ConvertPixelPointToDialog(self, *_args, **_kwargs)
- ConvertPixelSizeToDialog(self, *_args, **_kwargs)
- DLG_PNT(self, *_args, **_kwargs)
- DLG_SZE(self, *_args, **_kwargs)
- Destroy(self, *_args, **_kwargs)
- DestroyChildren(self, *_args, **_kwargs)
- Disable(self, *_args, **_kwargs)
- DragAcceptFiles(self, *_args, **_kwargs)
- Enable(self, *_args, **_kwargs)
- FindWindowById(self, *_args, **_kwargs)
- FindWindowByName(self, *_args, **_kwargs)
- Fit(self, *_args, **_kwargs)
- FitInside(self, *_args, **_kwargs)
- Freeze(self, *_args, **_kwargs)
- GetAcceleratorTable(self, *_args, **_kwargs)
- GetAdjustedBestSize(self, *_args, **_kwargs)
- GetAutoLayout(self, *_args, **_kwargs)
- GetBackgroundColour(self, *_args, **_kwargs)
- GetBestSize(self, *_args, **_kwargs)
- GetBestVirtualSize(self, *_args, **_kwargs)
- GetBorder(self, *_args, **_kwargs)
- GetCaret(self, *_args, **_kwargs)
- # replaces broken shadow method
- GetCharHeight(self, *_args, **_kwargs)
- GetCharWidth(self, *_args, **_kwargs)
- GetChildren(self, *_args, **_kwargs)
- GetClientRect(self, *_args, **_kwargs)
- GetClientSize(self, *_args, **_kwargs)
- GetClientSizeTuple(self, *_args, **_kwargs)
- GetConstraints(self, *_args, **_kwargs)
- GetContainingSizer(self, *_args, **_kwargs)
- GetCursor(self, *_args, **_kwargs)
- GetDefaultItem(self, *_args, **_kwargs)
- GetDropTarget(self, *_args, **_kwargs)
- GetEventHandler(self, *_args, **_kwargs)
- GetFont(self, *_args, **_kwargs)
- GetForegroundColour(self, *_args, **_kwargs)
- GetFullTextExtent(self, *_args, **_kwargs)
- GetGrandParent(self, *_args, **_kwargs)
- GetHandle(self, *_args, **_kwargs)
- GetHelpText(self, *_args, **_kwargs)
- GetId(self, *_args, **_kwargs)
- GetLabel(self, *_args, **_kwargs)
- GetMaxSize(self, *_args, **_kwargs)
- GetName(self, *_args, **_kwargs)
- GetParent(self, *_args, **_kwargs)
- GetPosition(self, *_args, **_kwargs)
- GetPositionTuple(self, *_args, **_kwargs)
- GetRect(self, *_args, **_kwargs)
- GetScrollPos(self, *_args, **_kwargs)
- GetScrollRange(self, *_args, **_kwargs)
- GetScrollThumb(self, *_args, **_kwargs)
- GetSize(self, *_args, **_kwargs)
- GetSizeTuple(self, *_args, **_kwargs)
- GetSizer(self, *_args, **_kwargs)
- GetTextExtent(self, *_args, **_kwargs)
- GetThemeEnabled(self, *_args, **_kwargs)
- GetToolTip(self, *_args, **_kwargs)
- GetUpdateRegion(self, *_args, **_kwargs)
- GetValidator(self, *_args, **_kwargs)
- GetVirtualSize(self, *_args, **_kwargs)
- GetVirtualSizeTuple(self, *_args, **_kwargs)
- GetWindowStyleFlag(self, *_args, **_kwargs)
- HasCapture(self, *_args, **_kwargs)
- HasScrollbar(self, *_args, **_kwargs)
- Hide(self, *_args, **_kwargs)
- HitTest(self, *_args, **_kwargs)
- InitDialog(self, *_args, **_kwargs)
- IsBeingDeleted(self, *_args, **_kwargs)
- IsEnabled(self, *_args, **_kwargs)
- IsExposed(self, *_args, **_kwargs)
- IsExposedPoint(self, *_args, **_kwargs)
- IsExposedRect(self, *_args, **_kwargs)
- IsRetained(self, *_args, **_kwargs)
- IsShown(self, *_args, **_kwargs)
- IsTopLevel(self, *_args, **_kwargs)
- Layout(self, *_args, **_kwargs)
- LineDown(self, *_args, **_kwargs)
- LineUp(self, *_args, **_kwargs)
- Lower(self, *_args, **_kwargs)
- MakeModal(self, *_args, **_kwargs)
- Move(self, *_args, **_kwargs)
- MoveXY(self, *_args, **_kwargs)
- OnPaint(self, *_args, **_kwargs)
- PageDown(self, *_args, **_kwargs)
- PageUp(self, *_args, **_kwargs)
- PopEventHandler(self, *_args, **_kwargs)
- PopupMenu(self, *_args, **_kwargs)
- PopupMenuXY(self, *_args, **_kwargs)
- PushEventHandler(self, *_args, **_kwargs)
- Raise(self, *_args, **_kwargs)
- Refresh(self, *_args, **_kwargs)
- RefreshRect(self, *_args, **_kwargs)
- ReleaseMouse(self, *_args, **_kwargs)
- RemoveChild(self, *_args, **_kwargs)
- RemoveEventHandler(self, *_args, **_kwargs)
- Reparent(self, *_args, **_kwargs)
- ScreenToClient(self, *_args, **_kwargs)
- ScreenToClientXY(self, *_args, **_kwargs)
- ScrollLines(self, *_args, **_kwargs)
- ScrollPages(self, *_args, **_kwargs)
- ScrollWindow(self, *_args, **_kwargs)
- SetAcceleratorTable(self, *_args, **_kwargs)
- SetAutoLayout(self, *_args, **_kwargs)
- SetBackgroundColour(self, *_args, **_kwargs)
- SetCaret(self, *_args, **_kwargs)
- SetClientSize(self, *_args, **_kwargs)
- SetClientSizeWH(self, *_args, **_kwargs)
- SetConstraints(self, *_args, **_kwargs)
- SetContainingSizer(self, *_args, **_kwargs)
- SetCursor(self, *_args, **_kwargs)
- SetDefaultItem(self, *_args, **_kwargs)
- SetDimensions(self, *_args, **_kwargs)
- SetDropTarget(self, *_args, **_kwargs)
- SetEventHandler(self, *_args, **_kwargs)
- SetExtraStyle(self, *_args, **_kwargs)
- SetFocus(self, *_args, **_kwargs)
- SetFocusFromKbd(self, *_args, **_kwargs)
- SetFont(self, *_args, **_kwargs)
- SetForegroundColour(self, *_args, **_kwargs)
- SetHelpText(self, *_args, **_kwargs)
- SetHelpTextForId(self, *_args, **_kwargs)
- SetId(self, *_args, **_kwargs)
- SetLabel(self, *_args, **_kwargs)
- SetName(self, *_args, **_kwargs)
- SetPosition(self, *_args, **_kwargs)
- SetRect(self, *_args, **_kwargs)
- SetScrollPos(self, *_args, **_kwargs)
- SetScrollbar(self, *_args, **_kwargs)
- SetSize(self, *_args, **_kwargs)
- SetSizeHints(self, *_args, **_kwargs)
- SetSizer(self, *_args, **_kwargs)
- SetSizerAndFit(self, *_args, **_kwargs)
- SetThemeEnabled(self, *_args, **_kwargs)
- SetTmpDefaultItem(self, *_args, **_kwargs)
- SetToolTip(self, *_args, **_kwargs)
- SetToolTipString(self, *_args, **_kwargs)
- SetValidator(self, *_args, **_kwargs)
- SetVirtualSize(self, *_args, **_kwargs)
- SetVirtualSizeHints(self, *_args, **_kwargs)
- SetVirtualSizeWH(self, *_args, **_kwargs)
- SetWindowStyle(self, *_args, **_kwargs)
- SetWindowStyleFlag(self, *_args, **_kwargs)
- Show(self, *_args, **_kwargs)
- Thaw(self, *_args, **_kwargs)
- TransferDataFromWindow(self, *_args, **_kwargs)
- TransferDataToWindow(self, *_args, **_kwargs)
- UnsetConstraints(self, *_args, **_kwargs)
- Update(self, *_args, **_kwargs)
- UpdateWindowUI(self, *_args, **_kwargs)
- Validate(self, *_args, **_kwargs)
- WarpPointer(self, *_args, **_kwargs)
Methods inherited from wxEvtHandlerPtr:
- AddPendingEvent(self, *_args, **_kwargs)
- Connect(self, *_args, **_kwargs)
- Disconnect(self, *_args, **_kwargs)
- GetEvtHandlerEnabled(self, *_args, **_kwargs)
- GetNextHandler(self, *_args, **_kwargs)
- GetPreviousHandler(self, *_args, **_kwargs)
- ProcessEvent(self, *_args, **_kwargs)
- SetEvtHandlerEnabled(self, *_args, **_kwargs)
- SetNextHandler(self, *_args, **_kwargs)
- SetPreviousHandler(self, *_args, **_kwargs)
Methods inherited from wxObjectPtr:
- GetClassName(self, *_args, **_kwargs)
| |