IFileOpenDialog

class IFileOpenDialog

Bases: ImpactCOMWrapperBase

Description:

Represents an “open file” dialog, allowing the user to choose a file name and location.

Remarks:

Introduced in Impact 8.0.0.49

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property file_name

Gets file_name.

Description:

Gets the name of the chosen file.

Returns:

The value of file_name.

Return type:

file_name (str)

property file_path

Gets file_path.

Description:

Gets the path of the chosen file.

Returns:

The value of file_path.

Return type:

file_path (str)

property title

Gets Title.

Description:

Sets the title displayed on the dialog box.

Returns:

The value of Title.

Return type:

title (str)

isNone()

Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.

show_modal()
Description:

Display the dialog

Returns:

Returns True if the Open button was pressed, or False if the Cancel button was pressed.

Examples