[PyKDE] Line numbers in TextEdit box?

Jonathan Gardner jgardner at jonathangardner.net
Tue Aug 12 18:38:01 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 12 August 2003 08:52, Peter Clark wrote:
> Question: is it possible to implement in PyQt something similar to
> QScintilla's line number bar (a grey strip with the line numbers in a
> TextEdit box)? I was looking at eric3's code, but that just uses
> QScintilla. Other options?

1) Implementing your own text edit with PyQt.

Won't be too difficult. Since Qt is GPL, you can "borrow" code and 
concepts and write it all in Python.

2) Using QScintilla. ;-)

Why reinvent the wheel? Perhaps you are having difficulty obtaining or 
compiling qscintilla and PyQt. You should address these problems first.

> -- 
> Oh what a tangled web they weave who try a new word to conceive!

Oh what a tangled web they weave, who try a new *code* to conceive!

- -- 
Jonathan Gardner <jgardner at jonathangardner.net>
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/ORfbWgwF3QvpWNwRAj/YAKDRBpSoMc5BPkslhY3L63CULi7fSgCfc71i
wJCskiXnE9DFG/zRwNVoM0M=
=eqms
-----END PGP SIGNATURE-----




More information about the PyQt mailing list