madgui.widget.filedialog module

Utility functions for use with QFileDialog.

Functions

getOpenFileName(*args, **kwargs)

Imitates QFileDialog.getOpenFileName, except that filter is now filters that must be specified as a list.

getSaveFileName(*args, **kwargs)

getSaveFolderName(*args, **kwargs)

getFileName(mode, *args, **kwargs)

Classes

FileWidget()

class madgui.widget.filedialog.FileWidget[source]

Bases: PyQt5.QtWidgets.QLineEdit

Attributes

file_changed

Signal<<class ‘str’>>

mode

int(x=0) -> integer

title

str(object=’’) -> str

Methods

keyPressEvent(self, QKeyEvent)

mousePressEvent(self, QMouseEvent)

set_filename(filename)

show_open_dialog()

file_changed

Signal<<class ‘str’>>

filename = None
filters = None
folder = None
keyPressEvent(self, QKeyEvent)[source]
mode = 0
mousePressEvent(self, QMouseEvent)[source]
set_filename(filename)[source]
show_open_dialog()[source]
title = 'Open file'
madgui.widget.filedialog.getFileName(mode, *args, **kwargs)[source]
madgui.widget.filedialog.getOpenFileName(*args, **kwargs)[source]

Imitates QFileDialog.getOpenFileName, except that filter is now filters that must be specified as a list.

madgui.widget.filedialog.getSaveFileName(*args, **kwargs)[source]
madgui.widget.filedialog.getSaveFolderName(*args, **kwargs)[source]