Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QScintilla in PySide

I like PySide, and have used it for a while now, but in the program I am working on at the moment, I need an advanced code editor.

I have found QScintilla, but that is for PyQt. Is that compatible with PySide and if so, how would I go about using it?
I have also looked at PySide-QScintilla, but all that is is a couple of .h files and an __init.py__ and the __init__.py doesn't even have anything relating to the .h files! Has anyone used that? How do you include it in a program?
I also saw qutepart but it seems to be mush too basic for what I need.

I would accept solutions other than QScintilla, but they have to have:

  • Error Highlighting
  • Syntax Highlighting
  • Code Suggestion (a drop down menu while typing)
  • Line Numbers
  • Custom Colors
  • Must be at least GPL (LGPL would be nice)

Any other features are great.

like image 347
KFox Avatar asked Apr 21 '13 22:04

KFox


People also ask

Is PySide better than PyQt?

PySide is LGPL while PyQt is GPL. This could make a difference if you don't wish to make your project opensource. Although PyQt always has the propriety version available for a fairly reasonable price. I tend to find the PySide documentation more intuitive.

Why use PySide instead of PyQt?

Advantages of PySide PySide represents the official set of Python bindings backed up by the Qt Company. PySide comes with a license under the LGPL, meaning it is simpler to incorporate into commercial projects when compared with PyQt. It allows the programmer to use QtQuick or QML to establish the user interface.

What is the difference between PySide and PySide2?

PySide is a binding to Qt4, whereas PySide2 is a binding to Qt5.

Is PySide same as PyQt?

PyQt is significantly older than PySide and, partially due to that, has a larger community and is usually ahead when it comes to adopting new developments. It is mainly developed by Riverbank Computing Limited and distributed under GPL v3 and a commercial license.


1 Answers

Doing a quick Google search brought up the following:

  • http://gitorious.org/pyside-qscintilla
  • https://github.com/LuaDist/scintilla/tree/master/qt/ScintillaEditPy

I suspect the first one is a direct port, whereas the second is some kind of Scintilla wrapper instead of a QScintilla port.

like image 140
Mike Driscoll Avatar answered Oct 18 '22 12:10

Mike Driscoll