I would like to create a function for searching for words and highlight them in Qscintilla editor and another function to go to specific line in the editor.
I know these functions works in QPlainTextEdit but since I am learning Qscintilla and most…
Let me start by posting some little helper functions I'll use to formulate my questions:
import textwrap
import sys
from pathlib import Path
from PyQt5.Qsci import QsciScintilla
from PyQt5.Qt import * # noqa
def set_style(sci):
# Set default…
I have class MainWindow and it have qscintilla editor, i want to add listener to editor mousePressEvent
class MainWindow(QtWidgets.QMainWindow, gui.Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
…
These files have something to do with python code analysis. More than that, probably. An example:
https://github.com/fastogt/qscintilla/blob/master/qsci/api/python/Python-3.4.api
These files belong either to Python, or to Qt ecosystem. The question…
I try to run a Python script which is a demo from PyForms, which uses PyQt5, SIP and obviously QScintilla.
import pyforms
from pyforms import BaseWidget
from pyforms.controls import ControlText
from pyforms.controls import ControlButton
class…
When I installed eric6, I was prompted with the following problems:
Python Version: 3.6.5
Found PyQt5
Found pyuic5
Sorry, please install QScintilla2 and its PyQt5/PyQt4 wrapper.
Error: DLL load failed: Cannot find the specified program!
But I have…
Automatic indentation is a very nice feature offered by QScintilla. When inserting a new line, automatic indentation pushes the cursor to the same indentation level as the previous one:
1. Without lexer
If you did NOT install a lexer, you can…
I need to install qscintilla. I use pip for that:
> pip install qscintilla
PyQt5 automatically upgrades to the latest version '5.8.2', and sip upgrades to '4.19.2'. I suppose this has to do with the needs of qscintilla. Perhaps the latest version…
I have project written in C++ that use Qt Framework and QScintilla2. I cannot build Release because of linker errors. I'm using Visual Studio 2013.
Errors:
1>codeditor.obj : error LNK2019: unresolved external symbol "public:
static struct…
I would like to create something like web editor, with a preview function. To do that, I created my editor with highlight function, ... and I use the WebEngigne class for my preview.
My problem is that i can't add my editor class in my project.
This…
EDIT : THE CODE IS THE RIGHT CODE, FOR MORE EXPLANATION LOOK IN COMMENTS ;)
I'm trying to do an auto completer for parenthesis with Qt and Qscintilla library but i don't know why, my program wont goes into keyPressEvent function.
#include…
I got this little mcve code:
import sys
import re
from PyQt5 import QtGui, QtWidgets, QtCore
from PyQt5.Qsci import QsciScintilla
from PyQt5 import Qsci
class SimpleEditor(QsciScintilla):
def __init__(self, language=None, parent=None):
…
I am trying to compile Qscintilla 2.9.3 (obtained here) on mac (OS X 10.11.6), but the make step fails with the following error :
/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c -pipe -O2 -std=gnu++11 -isysroot…
I'd like to create a little QScintilla widget supporting multi-cursor-editing like in SublimeText. As far as i know Scintilla already supports multiple cursors but I haven't seen any example out there.
So, could anyone please post a little example…
While attempting to build Octave 3.8.2 on a Solaris 10 Sparc 64 machine, configure tells me it can't find the Qscintilla libraries (and several others too), even though I have them. This is what I'm saying:
./configure --prefix=$HOME/bin/octave…