pycrossword
0.4
Pure-Python implementation of a crossword puzzle generator and editor
|
Dialog to add or edit custom plugins. More...
Public Member Functions | |
def | __init__ (self, mainwindow, title, plugin_category='', plugin_name='', plugin_desc='', plugin_vers='', plugin_auth='', plugin_copyright='', plugin_website='', plugin_path='', parent=None, flags=QtCore.Qt.WindowFlags()) |
Constructor. More... | |
def | addMainLayout (self) |
Creates the main (central) layout for controls. More... | |
def | validate (self) |
Validates user input (reimplemented in child classes). More... | |
def | on_combo_source (self, index) |
Fires when an item in the 'Plugin source' combobox is selected. 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 | 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 | |
mainwindow | |
presets | |
layout_controls | |
le_name | |
combo_category | |
le_author | |
le_version | |
le_copyright | |
te_description | |
le_website | |
combo_source | |
le_sourcepath | |
![]() | |
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... | |
Dialog to add or edit custom plugins.
def pycross.forms.CustomPluginDialog.__init__ | ( | self, | |
mainwindow, | |||
title, | |||
plugin_category = '' , |
|||
plugin_name = '' , |
|||
plugin_desc = '' , |
|||
plugin_vers = '' , |
|||
plugin_auth = '' , |
|||
plugin_copyright = '' , |
|||
plugin_website = '' , |
|||
plugin_path = '' , |
|||
parent = None , |
|||
flags = QtCore.Qt.WindowFlags() |
|||
) |
Constructor.
mainwindow | QtWidgets.QMainWindow pointer to gui::MainWindow instance |
title | str dialog title |
plugin_category | str plugin category name (default = empty, user will choose) |
plugin_name | str plugin name (default = empty) |
plugin_desc | str plugin description (default = empty) |
plugin_vers | str plugin version (default = empty) |
plugin_auth | str plugin author (default = empty) |
plugin_copyright | str plugin copyright (default = empty) |
plugin_website | str plugin website (default = empty) |
plugin_path | str plugin module path (default = empty) |
parent | QtWidgets.QWidget parent widget (default = None , i.e. no parent) |
flags | QtCore.Qt.WindowFlags Qt window flags |
def pycross.forms.CustomPluginDialog.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.CustomPluginDialog.on_combo_source | ( | self, | |
index | |||
) |
Fires when an item in the 'Plugin source' combobox is selected.
def pycross.forms.CustomPluginDialog.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.CustomPluginDialog.combo_category |
pycross.forms.CustomPluginDialog.combo_source |
pycross.forms.CustomPluginDialog.layout_controls |
pycross.forms.CustomPluginDialog.le_author |
pycross.forms.CustomPluginDialog.le_copyright |
pycross.forms.CustomPluginDialog.le_name |
pycross.forms.CustomPluginDialog.le_sourcepath |
pycross.forms.CustomPluginDialog.le_version |
pycross.forms.CustomPluginDialog.le_website |
pycross.forms.CustomPluginDialog.mainwindow |
pycross.forms.CustomPluginDialog.presets |
pycross.forms.CustomPluginDialog.te_description |