def showEvent(self, QShowEvent): QWidget.showEvent(self, QShowEvent) self.edtRule.setSelection(len(self.edtRule.text()),0)
def showEvent(self, *args, **kwargs): self.activate(0) return QWidget.showEvent(self, *args, **kwargs)
def showEvent(self, QShowEvent): QWidget.showEvent(self, QShowEvent) self.edtRule.setSelection(len(self.edtRule.text()), 0)