I am making a program that compares code files for differences, and I want each QLabel to have a line count on the side. Like how Sublime Text or Trinket.io code editors do. Can anyone help? Please be clear that I am not amazing in PyQt5 however I have made programs before.
Asked
Active
Viewed 254 times
0
-
Possible duplicate of [Create text area (textEdit) with line number in PyQt](https://stackoverflow.com/questions/40386194/create-text-area-textedit-with-line-number-in-pyqt) – Nikola Jankovic Jan 28 '19 at 22:00
-
Similar but this is a __QLabel__, not a QLineEdit. Thanks though! :D – get_scripted Jan 28 '19 at 22:01
-
Well, both QLabel and QLineEdit share the same functions (e.g. setText), so the previous link is a good starter. – Demi-Lune Jan 28 '19 at 22:35
-
Ahhh... thanks @Demi-Lune. – get_scripted Jan 28 '19 at 23:08