pycrossword
0.4
Pure-Python implementation of a crossword puzzle generator and editor
|
Crossword information editor window. More...
Public Member Functions | |
def | __init__ (self, mainwindow, parent=None, flags=QtCore.Qt.WindowFlags()) |
Constructor. More... | |
def | addMainLayout (self) |
Creates the main (central) layout for controls. More... | |
def | init (self) |
Initializes controls from crossword info. More... | |
def | to_info (self) |
Returns crossword information record initialized from the current control values. More... | |
![]() | |
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 | event (self, QtCore.QEvent event) |
def | initUI (self, geometry=None, title=None, icon=None) |
Creates the core controls: OK and Cancel buttons and layouts. More... | |
def | validate (self) |
Validates user input (reimplemented in child classes). 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 | |
mainwindow | |
QtWidgets.QMainWindow pointer to gui::MainWindow instance More... | |
layout_controls | |
le_title | |
le_author | |
le_editor | |
le_publisher | |
le_copyright | |
de_date | |
btn_stats | |
![]() | |
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 information editor window.
def pycross.forms.CwInfoDialog.__init__ | ( | self, | |
mainwindow, | |||
parent = None , |
|||
flags = QtCore.Qt.WindowFlags() |
|||
) |
Constructor.
mainwindow | QtWidgets.QMainWindow pointer to gui::MainWindow instance |
parent | QtWidgets.QWidget parent widget (default = None , i.e. no parent) |
flags | QtCore.Qt.WindowFlags Qt window flags |
def pycross.forms.CwInfoDialog.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.CwInfoDialog.init | ( | self | ) |
Initializes controls from crossword info.
def pycross.forms.CwInfoDialog.to_info | ( | self | ) |
Returns crossword information record initialized from the current control values.
crossword::CWInfo
crossword information record pycross.forms.CwInfoDialog.btn_stats |
pycross.forms.CwInfoDialog.de_date |
pycross.forms.CwInfoDialog.layout_controls |
pycross.forms.CwInfoDialog.le_author |
pycross.forms.CwInfoDialog.le_copyright |
pycross.forms.CwInfoDialog.le_editor |
pycross.forms.CwInfoDialog.le_publisher |
pycross.forms.CwInfoDialog.le_title |
pycross.forms.CwInfoDialog.mainwindow |
QtWidgets.QMainWindow
pointer to gui::MainWindow instance