(self, server)
| 183 | self.conns[host] = conn |
| 184 | |
| 185 | def _disconnect(self, server): |
| 186 | host = server.host() |
| 187 | print 'disconnecting %r' % host |
| 188 | conn = self.conns.get(host) |
| 189 | if conn: |
| 190 | conn.kill() |
| 191 | self.fill_menu() |
| 192 | self.logField.textStorage().setAttributedString_( |
| 193 | NSAttributedString.alloc().initWithString_('')) |
| 194 | |
| 195 | @objc.IBAction |
| 196 | def cmd_connect(self, sender): |