pyqode.core.dialogs package

Module content

This package contains all the pyqode specific dialogs.

Classes

DlgPreferredEncodingsEditor

class pyqode.core.dialogs.DlgPreferredEncodingsEditor(parent=None)

Bases: PyQt5.QtWidgets.QDialog

This dialog is used to edit the preferred encodings that appears in the encodings menu/combo box.

classmethod edit_encoding(parent)

Static helper method that shows the encoding editor dialog If the dialog was accepted the new encodings are added to the settings.

Parameters:parent – parent widget
Returns:True in case of succes, False otherwise
get_preferred_encodings()

Gets the list of preferred encodings. :return: list

DlgGotoLine

class pyqode.core.dialogs.DlgGotoLine(parent, current_line, line_count)

Bases: PyQt5.QtWidgets.QDialog, pyqode.core._forms.dlg_goto_line_ui.Ui_Dialog

Goto line dialog.

classmethod get_line(parent, current_line, line_count)

Gets user selected line.

Parameters:
  • parent – Parent widget
  • current_line – Current line number
  • line_count – Number of lines in the current text document.
Returns:

tuple(line, status) status is False if the dialog has been rejected.

DlgUnsavedFiles

class pyqode.core.dialogs.DlgUnsavedFiles(parent, files=None)

Bases: PyQt5.QtWidgets.QDialog, pyqode.core._forms.dlg_unsaved_files_ui.Ui_Dialog

This dialog shows the list of unsaved file in the CodeEditTabWidget.

Use can choose to: - cancel: nothing changed, no tab will be closed - save all/save selected: save the selected files or all files - discard all changes: nothing will be saved but all tabs will be closed.

Table Of Contents

Previous topic

pyqode.core.backend package

Next topic

pyqode.core.managers package