eric7.EricWidgets.EricCompleters

Module implementing various kinds of completers.

Global Attributes

None

Classes

EricDirCompleter Class implementing a completer for directory names.
EricFileCompleter Class implementing a completer for file names.
EricStringListCompleter Class implementing a completer for string lists.

Functions

None


EricDirCompleter

Class implementing a completer for directory names.

Derived from

QCompleter

Class Attributes

None

Class Methods

None

Methods

EricDirCompleter Constructor
rootPath Public method to get the root path of the model.
setRootPath Public method to set the root path of the model.

Static Methods

None

EricDirCompleter (Constructor)

EricDirCompleter(parent=None, completionMode=QCompleter.CompletionMode.PopupCompletion, showHidden=False, )

Constructor

parent (QWidget)
parent widget of the completer
completionMode (QCompleter.CompletionMode)
completion mode of the completer
showHidden (bool)
flag indicating to show hidden entries as well

EricDirCompleter.rootPath

rootPath()

Public method to get the root path of the model.

Return:
root path of the model
Return Type:
str

EricDirCompleter.setRootPath

setRootPath(path)

Public method to set the root path of the model.

path (str)
root path for the model
Up


EricFileCompleter

Class implementing a completer for file names.

Derived from

QCompleter

Class Attributes

None

Class Methods

None

Methods

EricFileCompleter Constructor
rootPath Public method to get the root path of the model.
setRootPath Public method to set the root path of the model.

Static Methods

None

EricFileCompleter (Constructor)

EricFileCompleter(parent=None, completionMode=QCompleter.CompletionMode.PopupCompletion, showHidden=False, )

Constructor

parent (QWidget)
parent widget of the completer
completionMode (QCompleter.CompletionMode)
completion mode of the completer
showHidden (bool)
flag indicating to show hidden entries as well

EricFileCompleter.rootPath

rootPath()

Public method to get the root path of the model.

Return:
root path of the model
Return Type:
str

EricFileCompleter.setRootPath

setRootPath(path)

Public method to set the root path of the model.

path (str)
root path for the model
Up


EricStringListCompleter

Class implementing a completer for string lists.

Derived from

QCompleter

Class Attributes

None

Class Methods

None

Methods

EricStringListCompleter Constructor

Static Methods

None

EricStringListCompleter (Constructor)

EricStringListCompleter(parent=None, strings=None, completionMode=QCompleter.CompletionMode.PopupCompletion, )

Constructor

parent (QWidget)
parent widget of the completer
strings (list of str)
list of string to load into the completer
completionMode (QCompleter.CompletionMode)
completion mode of the completer
Up