pycrossword
0.4
Pure-Python implementation of a crossword puzzle generator and editor
|
Tiny login/password authentication dialog. More...
Public Member Functions | |
def | __init__ (self, data=None, can_add=False, can_delete=False, can_reorder=True, unique_params=True, params_editable=False, header_labels=[_('Parameter'), _('Value')], on_validate=None, title=_('Value Editor'), icon='table.png', parent=None, flags=QtCore.Qt.WindowFlags()) |
def | resizeEvent (self, event) |
def | addMainLayout (self) |
Creates the main (central) layout for controls. More... | |
def | validate (self) |
Validates user input (reimplemented in child classes). More... | |
def | on_act_addrow (self, checked) |
def | copyrow (self, row_from, row_to) |
def | on_act_delrow (self, checked) |
def | on_act_moverowup (self, checked) |
def | on_act_moverowdown (self, checked) |
def | fill_table (self, data) |
def | table_itemChanged (self, item) |
def | table_itemSelectionChanged (self) |
def | update_actions (self) |
def | serialize_table (self) |
def | list_values (self, col) |
![]() | |
def | __init__ (self, geometry=None, title=None, icon=None, parent=None, flags=QtCore.Qt.WindowFlags(), sizepolicy=QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)) |
Constructor. More... | |
def | initUI (self, geometry=None, title=None, icon=None) |
Creates the core controls: OK and Cancel buttons and layouts. More... | |
def | on_btn_OK_clicked (self) |
Fires when the OK button is clicked. More... | |
def | on_btn_cancel_clicked (self) |
Fires when the Cancel button is clicked: rejects input and closes window. More... | |
Public Attributes | |
can_add | |
can_delete | |
can_reorder | |
unique_params | |
params_editable | |
on_validate | |
header_labels | |
layout_controls | |
tbMain | |
act_addrow | |
act_delrow | |
act_moverowup | |
act_moverowdown | |
twParams | |
data | |
![]() | |
layout_controls | |
QtWidgets.QFormLayout central layout for controls More... | |
btn_OK | |
QtWidgets.QPushButton OK button More... | |
btn_cancel | |
QtWidgets.QPushButton Cancel button More... | |
layout_bottom | |
QtWidgets.QHBoxLayout bottom layout for OK and Cancel buttons More... | |
layout_main | |
QtWidgets.QVBoxLayout window layout More... | |
Tiny login/password authentication dialog.
def pycross.forms.ParamValueEditor.__init__ | ( | self, | |
data = None , |
|||
can_add = False , |
|||
can_delete = False , |
|||
can_reorder = True , |
|||
unique_params = True , |
|||
params_editable = False , |
|||
header_labels = [_('Parameter'), _('Value')] , |
|||
on_validate = None , |
|||
title = _('Value Editor') , |
|||
icon = 'table.png' , |
|||
parent = None , |
|||
flags = QtCore.Qt.WindowFlags() |
|||
) |
def pycross.forms.ParamValueEditor.addMainLayout | ( | self | ) |
Creates the main (central) layout for controls.
Must be overridden by child classes to change the layout type (default = QtWidgets.QFormLayout
) and add controls.
Reimplemented from pycross.forms.BasicDialog.
def pycross.forms.ParamValueEditor.copyrow | ( | self, | |
row_from, | |||
row_to | |||
) |
def pycross.forms.ParamValueEditor.fill_table | ( | self, | |
data | |||
) |
def pycross.forms.ParamValueEditor.list_values | ( | self, | |
col | |||
) |
def pycross.forms.ParamValueEditor.on_act_addrow | ( | self, | |
checked | |||
) |
def pycross.forms.ParamValueEditor.on_act_delrow | ( | self, | |
checked | |||
) |
def pycross.forms.ParamValueEditor.on_act_moverowdown | ( | self, | |
checked | |||
) |
def pycross.forms.ParamValueEditor.on_act_moverowup | ( | self, | |
checked | |||
) |
def pycross.forms.ParamValueEditor.resizeEvent | ( | self, | |
event | |||
) |
def pycross.forms.ParamValueEditor.serialize_table | ( | self | ) |
def pycross.forms.ParamValueEditor.table_itemChanged | ( | self, | |
item | |||
) |
def pycross.forms.ParamValueEditor.table_itemSelectionChanged | ( | self | ) |
def pycross.forms.ParamValueEditor.update_actions | ( | self | ) |
def pycross.forms.ParamValueEditor.validate | ( | self | ) |
Validates user input (reimplemented in child classes).
bool
True
if user input is valid, False
otherwise Reimplemented from pycross.forms.BasicDialog.
pycross.forms.ParamValueEditor.act_addrow |
pycross.forms.ParamValueEditor.act_delrow |
pycross.forms.ParamValueEditor.act_moverowdown |
pycross.forms.ParamValueEditor.act_moverowup |
pycross.forms.ParamValueEditor.can_add |
pycross.forms.ParamValueEditor.can_delete |
pycross.forms.ParamValueEditor.can_reorder |
pycross.forms.ParamValueEditor.data |
pycross.forms.ParamValueEditor.header_labels |
pycross.forms.ParamValueEditor.layout_controls |
pycross.forms.ParamValueEditor.on_validate |
pycross.forms.ParamValueEditor.params_editable |
pycross.forms.ParamValueEditor.tbMain |
pycross.forms.ParamValueEditor.twParams |
pycross.forms.ParamValueEditor.unique_params |