QTextEdit()Add lookup list
-
Hello,
When you program Python with Pycharm and you press the Ctrl + Space keys, a list of Python objects and commands is displayed.I would like to add such a list to QTextEdit().
Ask:
Is that possible ? If yes how? -
Hi,
Are you trying to build a code editor ?
-
not quite. I save typing because of my physical disability.
table: 2 5 False → Creates an HTML table with 2 columns and 5 rows without color.
or
css_grid: 2 1700 0 column_1 column_2
creates a CSS grid with 2 columns.
my Python Qt software can have commands and I would like to display these commands using a drop-down list.
-
Sounds like a job for a QAction coupled with maybe a contextual QMenu.
-
Thank you for the tips!
-
Have you had a look at the pyQode project?
https://github.com/pyQode/pyqode.coreI can't point you to the exact point now. But surely this is done with pyQode!