5438 |
5438 |
5439 @param old reference to the widget loosing focus (QWidget) |
5439 @param old reference to the widget loosing focus (QWidget) |
5440 @param now reference to the widget gaining focus (QWidget) |
5440 @param now reference to the widget gaining focus (QWidget) |
5441 """ |
5441 """ |
5442 from QScintilla.Shell import Shell |
5442 from QScintilla.Shell import Shell |
5443 |
|
5444 if now is None: |
|
5445 return |
|
5446 |
5443 |
5447 if not isinstance(now, (Editor, Shell)): |
5444 if not isinstance(now, (Editor, Shell)): |
5448 self.editActGrp.setEnabled(False) |
5445 self.editActGrp.setEnabled(False) |
5449 self.copyActGrp.setEnabled(False) |
5446 self.copyActGrp.setEnabled(False) |
5450 self.viewActGrp.setEnabled(False) |
5447 self.viewActGrp.setEnabled(False) |