def showEvent(self, event):
     QsciScintilla.showEvent(self, event)
     # prevent issues with initially invisible cursor / caret line
     self.setFocus()
     #self.jumpToLine(0)
     # prevent issues with incorrect initial scroll position
     self.standardCommands().find(QsciCommand.VerticalCentreCaret).execute()
 def showEvent(self, event):
     QsciScintilla.showEvent(self, event)
     # prevent issues with initially invisible cursor / caret line
     self.setFocus()
     #self.jumpToLine(0)
     # prevent issues with incorrect initial scroll position
     self.standardCommands().find(QsciCommand.VerticalCentreCaret).execute()