A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.FileSystemWatcherEvent.html below:

wx.FileSystemWatcherEvent — wxPython Phoenix 4.2.4a1 documentation

wx.FileSystemWatcherEvent¶

A class of events sent when a file system event occurs.

Types of events reported may vary depending on a platform, however all platforms report at least creation of new file/directory and access, modification, move (rename) or deletion of an existing one.

Added in version 2.9.1.

Class Hierarchy¶

Inheritance diagram for class

FileSystemWatcherEvent

:

Methods Summary¶

__init__

Clone

GetChangeType

Returns the type of file system change that occurred.

GetErrorDescription

Return a description of the warning or error if this is an error event.

GetNewPath

Returns the new path of the renamed file/directory if this is a rename event.

GetPath

Returns the path at which the event occurred.

GetWarningType

Return the type of the warning if this event is a warning one.

IsError

Returns true if this error is an error event.

ToString

Returns a String describing an event, useful for logging, debugging or testing.

Properties Summary¶ Class API¶
class wx.FileSystemWatcherEvent(Event)¶

Possible constructors:

FileSystemWatcherEvent(changeType=0, watchid=ID_ANY) -> None

FileSystemWatcherEvent(changeType, warningType, errorMsg,
                       watchid=ID_ANY) -> None

FileSystemWatcherEvent(changeType, path, newPath, watchid=ID_ANY) ->
                       None

A class of events sent when a file system event occurs.


Methods¶
__init__(self, *args, **kw)¶

Overloaded Implementations:

__init__ (self, changeType=0, watchid=ID_ANY)

Parameters:
  • changeType (int)

  • watchid (int)

Return type:

None

__init__ (self, changeType, warningType, errorMsg, watchid=ID_ANY)

Parameters:
  • changeType (int)

  • warningType (FSWWarningType)

  • errorMsg (string)

  • watchid (int)

Return type:

None

__init__ (self, changeType, path, newPath, watchid=ID_ANY)

Parameters:
  • changeType (int)

  • path (string)

  • newPath (string)

  • watchid (int)

Return type:

None



Clone(self)¶
Return type:

wx.Event


GetChangeType(self)¶

Returns the type of file system change that occurred.

See FSWFlags for the list of possible file system change types.

Return type:

int


GetErrorDescription(self)¶

Return a description of the warning or error if this is an error event.

This string may be empty if the exact reason for the error or the warning is not known.

Return type:

str


GetNewPath(self)¶

Returns the new path of the renamed file/directory if this is a rename event.

Otherwise it returns the same path as GetPath .

Return type:

str


GetPath(self)¶

Returns the path at which the event occurred.

Return type:

str


GetWarningType(self)¶

Return the type of the warning if this event is a warning one.

If this is not a warning event, i.e. if GetChangeType doesn’t include FSW_EVENT_WARNING, returns FSW_WARNING_NONE.

Return type:

wx.FSWWarningType

Added in version 3.0.


IsError(self)¶

Returns true if this error is an error event.

Error event is an event generated when a warning or error condition arises.

Return type:

bool


ToString(self)¶

Returns a String describing an event, useful for logging, debugging or testing.

Return type:

str


Properties¶
ChangeType¶

See GetChangeType


ErrorDescription¶

See GetErrorDescription


NewPath¶

See GetNewPath


Path¶

See GetPath


WarningType¶

See GetWarningType


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4