Phoenix Logo

phoenix_title wx.lib.pydocview.FilePropertiesService

Service that installs under the File menu to show the properties of the file associated with the current document.


class_hierarchy Class Hierarchy

Inheritance diagram for class FilePropertiesService:

super_classes Known Superclasses

wx.lib.pydocview.DocService


method_summary Methods Summary

__init__ Initializes the PropertyService.
AddCustomEventHandler Adds a custom event handlers for the PropertyService. A custom event handler enables
chopPath Simple version of textwrap. textwrap.fill() unfortunately chops lines at spaces
GetCustomEventHandlers Returns the custom event handlers for the PropertyService.
InstallControls Installs a File/Properties menu item.
ProcessEvent Detects when the File/Properties menu item is selected.
ProcessUpdateUIEvent Updates the File/Properties menu item.
RemoveCustomEventHandler Removes a custom event handler from the PropertyService.
ShowPropertiesDialog Shows the PropertiesDialog for the specified file.

api Class API



class FilePropertiesService(DocService)

Service that installs under the File menu to show the properties of the file associated with the current document.


Methods



__init__(self)

Initializes the PropertyService.



AddCustomEventHandler(self, handler)

Adds a custom event handlers for the PropertyService. A custom event handler enables a different dialog to be provided for a particular file.



chopPath(self, text, length=36)

Simple version of textwrap. textwrap.fill() unfortunately chops lines at spaces and creates odd word boundaries. Instead, we will chop the path without regard to spaces, but pay attention to path delimiters.



GetCustomEventHandlers(self)

Returns the custom event handlers for the PropertyService.



InstallControls(self, frame, menuBar=None, toolBar=None, statusBar=None, document=None)

Installs a File/Properties menu item.



ProcessEvent(self, event)

Detects when the File/Properties menu item is selected.



ProcessUpdateUIEvent(self, event)

Updates the File/Properties menu item.



RemoveCustomEventHandler(self, handler)

Removes a custom event handler from the PropertyService.



ShowPropertiesDialog(self, filename=None)

Shows the PropertiesDialog for the specified file.