Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyqode.core

How to install pyqode.core

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyqode.core
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
1.0b2 Available View build log
 
License
GNU LGPL v3
Dependencies
Lastest release
version 1.0b2 on Jan 9th, 2014

version 1.0b2

Travis-CI build status

What is pyQode?

pyQode is a flexible source code editor widget for Python Qt applications. pyQode is a library/widget, not an IDE. You can see it as an alternative to QScintilla.$

pyQode is a namespace packages made up of the following official packages:
  • pyqode.core: This is the foundation package, it contains the pyqode base classes (QCodeEdit, Mode, Panel) and a set of builtin modes and panels that are useful for any kind of code editor. With pyqode.core you can already create a generic code editor (similar to gedit, notepad++) with only a few lines of code

  • pyqode.python: Adds various python specific modes and panels

  • pyqode.widgets: A set of additional widgets that might be useful when

    developing a pyqode based application (QPropertyGrid, QInteractiveConsole, QEditorTabWidgets, ...)

  • pyqode.designer: Starts Qt Designer with all the installed pyqode plugins

Features

Here are the core features:

  • supports PySide and PyQt4
  • supports Python 2 and Python 3
  • simple widget based on QPlainTextEdit
  • easily customisable (modes and panels)
  • native look and feel close to Qt creator
  • builtin modes and panels (folding, line number, code completion, syntax highlighting)
  • Qt Designer plugin
  • language specific extensions

License

pyQode is licensed under the LGPL v3.

Requirements

pyqode-core depends on the following libraries:

  • PyQt4 or PySide
  • Python 2.7 or Python 3 (>= 3.2)
  • pygments
  • setuptools

Installation

$ pip install pyqode.core

Usage

The public API is exposed by the pyqode.core package.

Here is a simple example using PyQt4:

System Message: ERROR/3 (<string>, line 81)

Unknown directive type "code".

.. code:: python

    # simple example using PyQt4
    import sys
    import PyQt4  # just to tell pyqode we want to use PyQt4.
    import pyqode.core
    from PyQt4.QtGui import QApplication


    def main():
        app = QApplication(sys.argv)
        editor = pyqode.core.QGenericCodeEdit()
        editor.openFile(__file__)
        editor.resize(800, 600)
        editor.show()
        return app.exec_()


    if __name__ == "__main__":
        sys.exit(main())

Screenshots

Here are a few screenshots of the gui integration example on several different platforms:

  • Windows 7:
Windows 7
  • Ubuntu:
Ubuntu
  • Linux Mint:
Linux mint
  • KDE:
KDE
  • KDE with a dark color scheme:
KDE dark
  • Gnome:
Gnome

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.