|
pycrossword
0.3
Pure-Python implementation of a crossword puzzle generator and editor
|
Crossword creation dialog providing options to populate the crossword grid. More...
Public Member Functions | |
| def | __init__ (self, parent=None, flags=QtCore.Qt.WindowFlags()) |
| Constructor. More... | |
| def | addMainLayout (self) |
| Creates the main (central) layout for controls. More... | |
| def | validate (self) |
| Checks that the text / pattern file is valid (if selected) or that the number of rows and columns is valid (if creating an empty cw grid). More... | |
| def | rb_toggled (self, toggled) |
| Show / hide panels under radio buttons. More... | |
Public Member Functions inherited from pycross.forms.BasicDialog | |
| 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 | |
| layout_controls | |
| rb_grid | |
QtWidgets.QRadioButton 'load from pattern file' option More... | |
| rb_file | |
QtWidgets.QRadioButton 'load from file' option More... | |
| rb_empty | |
QtWidgets.QRadioButton 'empty grid' option More... | |
| gb_pattern | |
| le_pattern | |
| layout_pattern | |
| gb_file | |
| le_file | |
| layout_file | |
| gb_manual | |
| le_rows | |
| le_cols | |
| combo_pattern | |
| layout_manual | |
Public Attributes inherited from pycross.forms.BasicDialog | |
| 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... | |
Crossword creation dialog providing options to populate the crossword grid.
| def pycross.forms.LoadCwDialog.__init__ | ( | self, | |
parent = None, |
|||
flags = QtCore.Qt.WindowFlags() |
|||
| ) |
Constructor.
| parent | QtWidgets.QWidget parent widget (default = None, i.e. no parent) |
| flags | QtCore.Qt.WindowFlags Qt window flags |
| def pycross.forms.LoadCwDialog.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.LoadCwDialog.rb_toggled | ( | self, | |
| toggled | |||
| ) |
Show / hide panels under radio buttons.
| def pycross.forms.LoadCwDialog.validate | ( | self | ) |
Checks that the text / pattern file is valid (if selected) or that the number of rows and columns is valid (if creating an empty cw grid).
Reimplemented from pycross.forms.BasicDialog.
| pycross.forms.LoadCwDialog.combo_pattern |
| pycross.forms.LoadCwDialog.gb_file |
| pycross.forms.LoadCwDialog.gb_manual |
| pycross.forms.LoadCwDialog.gb_pattern |
| pycross.forms.LoadCwDialog.layout_controls |
| pycross.forms.LoadCwDialog.layout_file |
| pycross.forms.LoadCwDialog.layout_manual |
| pycross.forms.LoadCwDialog.layout_pattern |
| pycross.forms.LoadCwDialog.le_cols |
| pycross.forms.LoadCwDialog.le_file |
| pycross.forms.LoadCwDialog.le_pattern |
| pycross.forms.LoadCwDialog.le_rows |
| pycross.forms.LoadCwDialog.rb_empty |
QtWidgets.QRadioButton 'empty grid' option
| pycross.forms.LoadCwDialog.rb_file |
QtWidgets.QRadioButton 'load from file' option
| pycross.forms.LoadCwDialog.rb_grid |
QtWidgets.QRadioButton 'load from pattern file' option
1.8.17