def toggle_auto_highlight(self):
self.auto_highlight = not self.auto_highlight
self.status_bar.showMessage(
'Auto highlight toggled {}'.format(
'on' if self.auto_highlight else 'off'), msecs=3000)
self.status_bar.update()
if self.auto_highlight:
current_callList = tz.first(cl for cl in self.callLists if cl.hasFocus())
current = current_callList.currentItem()
if current:
current_callList.focus(current)
评论列表
文章目录