Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module pydocview :: Class DocApp |
|
object
--+ |Object
--+ |EvtHandler
--+ |PyApp
--+ |App
--+ |PySimpleApp
--+ | DocApp
The DocApp class serves as the base class for pydocview applications and offers functionality such as services, creation of SDI and MDI frames, show tips, and a splash screen.
Method Summary | |
---|---|
Closes the child windows of a Document. | |
Closes the splash window. | |
Creates a child window of a document that edits an object. | |
Called by the DocManager to create and return a new Frame for a Document. | |
Creates and returns an MDI Document Frame. | |
Creates and returns an SDI Document Frame. | |
Creates and returns an MDI Document Frame for a Tabbed MDI view | |
Open any files specified in the given command line argument passed in via shared memory | |
Returns True if the application is in debug mode. | |
Returns the default flags to use when creating the DocManager. | |
Returns the application's default icon. | |
Returns the document manager associated to the DocApp. | |
Utility method that finds the Edit menu within the menubar of a frame. | |
Returns the instance of a particular type of service that has been installed into the DocApp. | |
Returns the DocService instances that have been installed into the DocApp. | |
Returns True if the application is in single instance mode. | |
Returns True if Windows MDI should use folder tabs instead of child windows. | |
Installs an instance of a DocService into the DocApp. | |
Returns True if the application is in MDI mode. | |
Returns True if the application is in SDI mode. | |
MacOpenFile(self,
filename)
| |
Called when an MDI Child Frame is closed. | |
Called when the MDI Parent Frame is closed. | |
Called when the DocApp is exited, enables the installed DocServices to exit and saves the DocManager's file history. | |
Initializes the DocApp. | |
Called to open files that have been passed to the application from the command line. | |
OpenMainFrame(self)
| |
Processes an event, searching event tables and calling zero or more suitable event handler function(s). | |
Enables services to process an event before the main window has a chance to process the window. | |
Processes a UI event, searching event tables and calling zero or more suitable event handler function(s). | |
Enables services to process a UI event before the main window has a chance to process the window. | |
Remember in the config whether the MDI Frame is maximized so that it can be restored on open. | |
Sets the application's debug mode. | |
Sets the application's default icon. | |
Sets the document manager associated with the DocApp and loads the DocApp's file history into the document manager. | |
Sets application's single instance mode. | |
Set to True if Windows MDI should use folder tabs instead of child windows. | |
Shows a splash window with the given image. | |
Shows the tip window, generally this is called when an application starts. | |
Inherited from PySimpleApp | |
| |
Inherited from App | |
| |
| |
Execute the main GUI event loop | |
Redirect sys.stdout and sys.stderr to a file or a popup window. | |
| |
Set the title, position and/or size of the output window if the stdio has been redirected. | |
Set the "main" top level window | |
Inherited from PyApp | |
| |
bool |
Process the first event in the event queue (blocks until an event appears if there are none currently) |
Exit the main loop thus terminating the application. | |
Exit the main GUI loop during the next iteration of the main loop, (i.e. | |
String |
Get the application name. |
int |
Get the current OnAssert behaviour setting. |
String |
Get the application's class name. |
int |
Returns 400, 470, 471, etc. (Static method) |
bool |
Get the current exit behaviour setting. |
long |
(Static method) |
long |
(Static method) |
String |
(Static method) |
long |
(Static method) |
bool |
(Static method) |
int |
|
Window |
Return the main top level window (if it hadn't been set previously with SetTopWindow(), will return just some top level window and, if there not any, will return None) |
wxAppTraits |
Return (and create if necessary) the app traits object to which we delegate for everything which either should be configurable by the user (then he can change the default behaviour simply by overriding CreateTraits() and returning his own traits object) or which is GUI/console dependent as then wx.AppTraits allows us to abstract the differences behind the common facade. |
bool |
Get current UseBestVisual setting. |
String |
Get the application's vendor name. |
bool |
Return True if our app has focus. |
bool |
Returns True if we're running the main loop, i.e. (Static method) |
bool |
Returns True if there are unprocessed events in the event queue. |
bool |
Called from the MainLoop when the application becomes idle (there are no pending events) and sends a wx.IdleEvent to all interested
parties. |
Process all events in the Pending Events list -- it is necessary to call this function to process posted events. | |
bool |
Send idle event to window and all subwindows. |
Set the application name. | |
Set the OnAssert behaviour for debug and hybrid builds.The following flags may be or'd together: | |
Set the application's class name. | |
Control the exit behaviour: by default, the program will exit the main loop (and so, usually, terminate) when the last top-level program window is deleted. | |
(Static method) | |
(Static method) | |
(Static method) | |
(Static method) | |
(Static method) | |
| |
Set whether the app should try to use the best available visual on systems where more than one is available, (Sun, SGI, XFree86 4, etc.) | |
Set the application's vendor name. | |
Make sure that idle events are sent again. | |
bool |
Process all currently pending events right now, instead of waiting until return to the event loop. |
Inherited from EvtHandler | |
| |
Bind an event to an event handler. | |
| |
bool |
|
bool |
|
EvtHandler |
|
EvtHandler |
|
| |
| |
| |
Disconencts the event handler binding for event from self. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Method Details |
---|
CloseChildDocuments(self, parentDocument)Closes the child windows of a Document. |
CloseSplash(self)Closes the splash window. |
CreateChildDocument(self, parentDocument, documentType, objectToEdit, path='')Creates a child window of a document that edits an object. The child window is managed by the parent document frame, so it will be prompted to close if its parent is closed, etc. Child Documents are useful when there are complicated Views of a Document and users will need to tunnel into the View. |
CreateDocumentFrame(self, view, doc, flags, id=-1, title='', pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=541072960)Called by the DocManager to create and return a new Frame for a Document. Chooses whether to create an MDIChildFrame or SDI Frame based on the DocManager's flags. |
CreateMDIDocumentFrame(self, doc, view, id=-1, title='', pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=541072960)Creates and returns an MDI Document Frame. |
CreateSDIDocumentFrame(self, doc, view, id=-1, title='', pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=541072960)Creates and returns an SDI Document Frame. |
CreateTabbedDocumentFrame(self, doc, view, id=-1, title='', pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=541072960)Creates and returns an MDI Document Frame for a Tabbed MDI view |
DoBackgroundListenAndLoad(self)Open any files specified in the given command line argument passed in via shared memory |
GetDebug(self)Returns True if the application is in debug mode. |
GetDefaultDocManagerFlags(self)Returns the default flags to use when creating the DocManager. |
GetDefaultIcon(self)Returns the application's default icon. |
GetDocumentManager(self)Returns the document manager associated to the DocApp. |
GetEditMenu(self, frame)Utility method that finds the Edit menu within the menubar of a frame. |
GetService(self, type)Returns the instance of a particular type of service that has been installed into the DocApp. For example, "wx.GetApp().GetService(pydocview.OptionsService)" returns the isntance of the OptionsService that is running within the DocApp. |
GetServices(self)Returns the DocService instances that have been installed into the DocApp. |
GetSingleInstance(self)Returns True if the application is in single instance mode. Used to determine if multiple instances of the application is allowed to launch. |
GetUseTabbedMDI(self)Returns True if Windows MDI should use folder tabs instead of child windows. |
InstallService(self, service)Installs an instance of a DocService into the DocApp. |
IsMDI(self)Returns True if the application is in MDI mode. |
IsSDI(self)Returns True if the application is in SDI mode. |
OnCloseChildWindow(self, event)Called when an MDI Child Frame is closed. Calls SaveMDIDocumentFrameMaximizedState to remember whether the MDI Frame is maximized so that it can be restored on open. |
OnCloseMainWindow(self, event)Called when the MDI Parent Frame is closed. Remembers whether the MDI Parent Frame is maximized. |
OnExit(self)Called when the DocApp is exited, enables the installed DocServices to exit and saves the DocManager's file history. |
OnInit(self)Initializes the DocApp.
|
OpenCommandLineArgs(self)Called to open files that have been passed to the application from the command line. |
ProcessEvent(self, event)Processes an event, searching event tables and calling zero or more suitable event handler function(s). Note that the ProcessEvent method is called from the wxPython docview framework directly since wxPython does not have a virtual ProcessEvent function.
|
ProcessEventBeforeWindows(self, event)Enables services to process an event before the main window has a chance to process the window. |
ProcessUpdateUIEvent(self, event)Processes a UI event, searching event tables and calling zero or more suitable event handler function(s). Note that the ProcessEvent method is called from the wxPython docview framework directly since wxPython does not have a virtual ProcessEvent function. |
ProcessUpdateUIEventBeforeWindows(self, event)Enables services to process a UI event before the main window has a chance to process the window. |
SaveMDIDocumentFrameMaximizedState(self, maximized)Remember in the config whether the MDI Frame is maximized so that it can be restored on open. |
SetDebug(self, debug)Sets the application's debug mode. |
SetDefaultIcon(self, icon)Sets the application's default icon. |
SetDocumentManager(self, docManager)Sets the document manager associated with the DocApp and loads the DocApp's file history into the document manager. |
SetSingleInstance(self, singleInstance)Sets application's single instance mode. |
SetUseTabbedMDI(self, useTabbedMDI)Set to True if Windows MDI should use folder tabs instead of child windows. |
ShowSplash(self, image)Shows a splash window with the given image. Input parameter 'image' can either be a wx.Bitmap or a filename. |
ShowTip(self, frame, tipProvider)Shows the tip window, generally this is called when an application starts. A wx.TipProvider must be passed. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:49:40 2007 | http://epydoc.sf.net |