Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign AttributeStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign AttributeStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad TryExcept body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body ImportFrom alias Expr Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Import alias Import alias ImportFrom alias FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
Contains a panel to manage unicode decoding/encoding errors.

 pyqode.core.api.panel Panel pyqode.core.api.decoration TextDecoration pyqode.qt QtCore QtGui QtWidgets EncodingPanel N/A Panel N/A N/A  Displays a warning when an encoding error occured and let you reload.

    This panel display a warning in case encoding/decoding error and
    give the user the possibility to try out another encoding, to edit any way
    or to close the editor.

    The panel is automatically shown by
    :class:`pyqode.core.managers.FileManager` in case of error so that you
    don't have to worry about encoding issues. The only think you might do
    is to provide to your user a way to specify the default encoding, i.e. the
    one that is tried before showing this panel.

    The panel is a simple widget with a label describing the error, an encoding
    menu and 3 buttons: ``Retry``, ``Edit`` anyway and ``Cancel``. It is
    strongly inspired by the GEdit encoding panel.

    You can change the background color and the label foreground color by
    setting up the ``color`` and ``foreground`` properties.

    It's up to the client code to handle cancel requests. To do that simply
    connect ``cancel_requested`` signal to remove the editor from your
    application.

     N/A cancel_requested N/A N/A QtCore Signal object N/A _description <html><head/><body><p><span style=" font-weight:600;">%s</span></p><p><span style=" font-size:9pt;">The file you opened has some invalid characters. If you continue editing this file you could corrupt this document. You can also choose another character encoding and try again.</span></p></body></html> color N/A N/A self N/A N/A N/A 
        Returns the panel color.
         N/A N/A self _color N/A property color N/A N/A self value N/A N/A N/A N/A self _color value N/A N/A N/A self _refresh_stylesheet N/A N/A self editor N/A N/A clone N/A N/A self editor clones N/A N/A N/A N/A N/A N/A N/A N/A clone modes get N/A self __class__ color value N/A N/A N/A KeyError N/A N/A N/A N/A color setter foreground N/A N/A self N/A N/A N/A N/A self _foreground N/A property foreground N/A N/A self value N/A N/A N/A N/A self _foreground value N/A N/A N/A self _refresh_stylesheet N/A N/A self editor N/A N/A clone N/A N/A self editor clones N/A N/A N/A N/A N/A N/A N/A N/A clone modes get N/A self __class__ foreground value N/A N/A N/A KeyError N/A N/A N/A N/A foreground setter _refresh_stylesheet N/A N/A self N/A N/A N/A N/A N/A N/A self _lbl_stylesheet N/A color: %s;background: %s N/A N/A N/A N/A self _foreground name N/A N/A N/A self _color name N/A lbl N/A self _labels N/A N/A N/A N/A lbl setStyleSheet N/A self _lbl_stylesheet N/A N/A N/A AttributeError N/A N/A N/A __init__ N/A N/A self add_context_menu N/A True N/A N/A N/A N/A N/A super EncodingPanel self __init__ dynamic True pyqode.core._forms.pnl_encoding_ui Ui_Form N/A N/A self ui N/A Ui_Form N/A N/A N/A N/A self ui setupUi self N/A N/A self __add_ctx_mnu add_context_menu N/A N/A self _labels N/A N/A N/A self ui label N/A N/A self ui lblDescription N/A N/A self _color None N/A N/A self color N/A N/A QtGui QColor #8AADD4 N/A N/A self _foreground None N/A N/A self foreground N/A N/A QtGui QColor #FFFFFF N/A N/A self _deco None N/A N/A N/A N/A N/A N/A self ui pushButtonRetry clicked connect N/A self _reload N/A N/A N/A N/A N/A N/A self ui pushButtonEdit clicked connect N/A self _edit_anyway N/A N/A N/A N/A N/A N/A self ui pushButtonCancel clicked connect N/A self cancel N/A N/A N/A self hide N/A enable_caret_line N/A N/A self value N/A True N/A N/A N/A pyqode.core.modes CaretLineHighlighterMode N/A mode N/A N/A N/A N/A self editor modes get CaretLineHighlighterMode N/A N/A N/A KeyError N/A N/A N/A N/A N/A mode enabled value N/A on_open_failed N/A N/A self path encoding N/A N/A N/A N/A N/A self enable_caret_line False N/A N/A N/A N/A self ui comboBoxEncodings current_encoding encoding N/A N/A N/A N/A N/A self ui lblDescription setText N/A N/A self _description N/A N/A _ There was a problem opening the file %r path N/A N/A N/A N/A open path rb file N/A N/A content N/A str N/A N/A file read 16 N/A N/A N/A OSError N/A N/A content N/A N/A N/A N/A self editor setPlainText content N/A N/A N/A N/A self editor file get_mimetype path N/A N/A N/A self editor file encoding N/A N/A N/A N/A self editor setDocumentTitle N/A N/A N/A self editor file name N/A N/A N/A N/A self editor setWindowTitle N/A N/A N/A self editor file name N/A N/A N/A N/A QtCore QTimer singleShot 1 N/A self show N/A show N/A N/A self N/A N/A N/A N/A N/A N/A super EncodingPanel self show N/A N/A N/A N/A self editor selectAll N/A N/A self _deco N/A TextDecoration N/A N/A N/A self editor textCursor N/A N/A N/A N/A self _deco set_background N/A N/A QtCore Qt red N/A N/A N/A N/A self _deco set_foreground N/A N/A QtCore Qt black N/A N/A N/A N/A N/A self editor decorations append N/A self _deco N/A cursor N/A N/A N/A self editor textCursor N/A N/A N/A cursor clearSelection N/A N/A N/A cursor setPosition 0 N/A N/A N/A N/A self editor setTextCursor cursor N/A N/A N/A N/A self editor setReadOnly True N/A paintEvent N/A N/A self event N/A N/A N/A  Fills the panel background.  N/A N/A N/A N/A super EncodingPanel self paintEvent event N/A N/A N/A self isVisible N/A N/A painter N/A N/A QtGui QPainter self N/A N/A self _background_brush N/A N/A QtGui QBrush N/A self _color N/A N/A N/A painter fillRect N/A N/A event rect N/A self _background_brush N/A on_install N/A N/A self editor N/A N/A N/A N/A N/A N/A super EncodingPanel self on_install editor N/A N/A self __add_ctx_mnu N/A pyqode.core.widgets EncodingsContextMenu N/A N/A EncodingsContextMenu parent editor N/A _reload N/A N/A self N/A N/A N/A N/A N/A self hide N/A N/A N/A self _rm_deco N/A N/A N/A N/A self editor setReadOnly False N/A N/A N/A self enable_caret_line True N/A N/A N/A N/A N/A self editor file reload N/A N/A N/A self ui comboBoxEncodings current_encoding N/A _edit_anyway N/A N/A self N/A N/A N/A N/A N/A self _rm_deco N/A N/A N/A N/A self editor setReadOnly False N/A N/A N/A self enable_caret_line True N/A N/A N/A self hide N/A _rm_deco N/A N/A self N/A N/A N/A N/A self _deco N/A N/A N/A N/A N/A N/A self editor decorations remove N/A self _deco N/A N/A self _deco None N/A cancel N/A N/A self N/A N/A N/A N/A N/A self sender N/A N/A N/A N/A N/A self editor clear N/A N/A N/A self _rm_deco N/A N/A N/A self enable_caret_line True N/A N/A N/A N/A self cancel_requested emit N/A self editor N/A N/A N/A self hide N/A clone_settings N/A N/A self original N/A N/A N/A N/A self color N/A original color N/A N/A self foreground N/A original foreground N/A N/A N/A N/A __name__ __main__ N/A N/A locale N/A sys pyqode.core.api CodeEdit simulate_open N/A N/A N/A N/A N/A N/A N/A pnl on_open_failed __file__ N/A N/A locale getpreferredencoding N/A simulate_save N/A N/A N/A N/A N/A N/A N/A pnl on_save_failed __file__ N/A N/A locale getpreferredencoding N/A N/A app N/A N/A QtWidgets QApplication N/A sys argv N/A edit N/A CodeEdit N/A N/A N/A edit setMinimumSize 800 600 N/A N/A N/A N/A edit file open __file__ N/A pnl N/A EncodingPanel N/A N/A N/A N/A edit panels append pnl N/A N/A pnl Position TOP N/A N/A N/A edit show N/A N/A simulate_open N/A N/A N/A N/A QtCore QTimer singleShot 5000 simulate_save N/A N/A N/A app exec_