pycrossword
0.4
Pure-Python implementation of a crossword puzzle generator and editor
|
Edit field with internal 'Browse' button to file or folder browsing. More...
Public Member Functions | |
def | __init__ (self, text='', parent=None, dialogtype=None, btnicon=None, btnposition=None, opendialogtitle=None, filefilters=None, fullpath=True) |
Constructor. More... | |
def | reset_action (self) |
Resets the browse action (after setting options). More... | |
def | on_btnaction (self) |
Triggered slot for the browse action: opens dialog and sets the edit text. More... | |
Public Attributes | |
dialogtype | |
str path and dialog type ('file' or 'folder') More... | |
btnicon | |
str icon file name in 'assets/icons' More... | |
btnposition | |
int browse button position (0 or 1) More... | |
opendialogtitle | |
str dialog title More... | |
filefilters | |
str file filters for file browse dialog More... | |
fullpath | |
delegate | |
btnaction | |
Private Member Functions | |
def | _get_dir (self, text=None) |
Gets the start directory for the browse dialog. More... | |
def | _clear_actions (self) |
Clears previous actions from the underlying object. More... | |
Edit field with internal 'Browse' button to file or folder browsing.
Inherited from QtWidgets.QLineEdit
def pycross.forms.BrowseEdit.__init__ | ( | self, | |
text = '' , |
|||
parent = None , |
|||
dialogtype = None , |
|||
btnicon = None , |
|||
btnposition = None , |
|||
opendialogtitle = None , |
|||
filefilters = None , |
|||
fullpath = True |
|||
) |
Constructor.
text | str initial text in edit field (default = empty) |
dialogtype | str path and dialog type:
|
btnicon | str icon file name in 'assets/icons' None = 'folder-2.png' (default) |
btnposition | int browse button position:
|
opendialogtitle | str dialog title (None will use a default title) |
filefilters | str file filters for file browse dialog, e.g. "Images (*.png *.xpm *.jpg);;Text files (*.txt);;XML files (*.xml)" None sets the default filter: "All files (*.*)" |
|
private |
Clears previous actions from the underlying object.
|
private |
Gets the start directory for the browse dialog.
def pycross.forms.BrowseEdit.on_btnaction | ( | self | ) |
Triggered slot for the browse action: opens dialog and sets the edit text.
def pycross.forms.BrowseEdit.reset_action | ( | self | ) |
Resets the browse action (after setting options).
pycross.forms.BrowseEdit.btnaction |
pycross.forms.BrowseEdit.btnicon |
str
icon file name in 'assets/icons'
pycross.forms.BrowseEdit.btnposition |
int
browse button position (0 or 1)
pycross.forms.BrowseEdit.delegate |
pycross.forms.BrowseEdit.dialogtype |
str
path and dialog type ('file' or 'folder')
pycross.forms.BrowseEdit.filefilters |
str
file filters for file browse dialog
pycross.forms.BrowseEdit.fullpath |
pycross.forms.BrowseEdit.opendialogtitle |
str
dialog title