eric7.MicroPython.Devices.CircuitPythonUpdater.RequirementsDialog

Module implementing a dialog to generate a requirements file.

Global Attributes

None

Classes

RequirementsDialog Class implementing a dialog to generate a requirements file.

Functions

None


RequirementsDialog

Class implementing a dialog to generate a requirements file.

Derived from

QDialog, Ui_RequirementsDialog

Class Attributes

None

Class Methods

None

Methods

RequirementsDialog Constructor
__generateRequirements Private slot to generate the requirements specifiers list.
__updateButtons Private method to set the state of the various buttons.
__writeToFile Private method to write the requirements text to a file.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_copyButton_clicked Private slot to copy the requirements text to the clipboard.
on_insertButton_clicked Private slot to insert the requirements text at the cursor position of the current editor.
on_replaceAllButton_clicked Private slot to replace the text of the current editor with the requirements text.
on_replaceSelectionButton_clicked Private slot to replace the selected text of the current editor with the requirements text.
on_requirementsEdit_textChanged Private slot handling changes of the requirements text.
on_requirementsFilePicker_textChanged Private slot handling a change of the requirements file name.
on_saveButton_clicked Private slot to save the requirements text to the requirements file.
on_saveToButton_clicked Private slot to write the requirements text to a new file.

Static Methods

None

RequirementsDialog (Constructor)

RequirementsDialog(devicePath, parent=None)

Constructor

devicePath (str)
path to the connected board
parent (QWidget (optional))
reference to the parent widget (defaults to None)

RequirementsDialog.__generateRequirements

__generateRequirements()

Private slot to generate the requirements specifiers list.

RequirementsDialog.__updateButtons

__updateButtons()

Private method to set the state of the various buttons.

RequirementsDialog.__writeToFile

__writeToFile(fileName)

Private method to write the requirements text to a file.

fileName (str)
name of the file to write to

RequirementsDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
button that was clicked

RequirementsDialog.on_copyButton_clicked

on_copyButton_clicked()

Private slot to copy the requirements text to the clipboard.

RequirementsDialog.on_insertButton_clicked

on_insertButton_clicked()

Private slot to insert the requirements text at the cursor position of the current editor.

RequirementsDialog.on_replaceAllButton_clicked

on_replaceAllButton_clicked()

Private slot to replace the text of the current editor with the requirements text.

RequirementsDialog.on_replaceSelectionButton_clicked

on_replaceSelectionButton_clicked()

Private slot to replace the selected text of the current editor with the requirements text.

RequirementsDialog.on_requirementsEdit_textChanged

on_requirementsEdit_textChanged()

Private slot handling changes of the requirements text.

RequirementsDialog.on_requirementsFilePicker_textChanged

on_requirementsFilePicker_textChanged(txt)

Private slot handling a change of the requirements file name.

txt (str)
name of the requirements file

RequirementsDialog.on_saveButton_clicked

on_saveButton_clicked()

Private slot to save the requirements text to the requirements file.

RequirementsDialog.on_saveToButton_clicked

on_saveToButton_clicked()

Private slot to write the requirements text to a new file.

Up