Esempio n. 1
0
 def open_chat_source(self):
     """Open a dialog with chat buffer source."""
     item = self.switch_buffers.currentItem()
     if item and item.active.buf:
         buf = item.active.buf
         source_dialog = DebugDialog(self)
         source_dialog.chat.setPlainText(buf.widget.chat.toHtml())
         source_dialog.chat.setFocusPolicy(QtCore.Qt.WheelFocus)
         source_dialog.setWindowTitle(buf.data['full_name'])