def check_full_list(self): self.refresh_data() if len(self.config) >= self.options[4]: Message.information(Message(), 'Lista llena', u'Ya has llegado al máximo permitdo de configuraciones.\n' u'En caso de querer impedir este comportamiento puedes ' u'cambiarlo en opciones.', '') return True return False
def info_dialog(self): self.reload() interfaces_disconnected = '<h3>Interfaces desconectadas</h3>' interfaces_connected = '<h3>Interfaces conectadas</h3>' for config in self.IPCONFIG: if config[1] == 'disconnected': interfaces_disconnected += '<p>____________________</p>' # interfaces_disconnected += '<p>%s</p>' % config[2] interfaces_disconnected += '<p>%s</p>' % config[4] interfaces_disconnected += '<p>%s</p>' % config[5] else: interfaces_connected += '<p>%s</p>' % config[2] interfaces_connected += '<p>%s</p>' % config[4] interfaces_connected += '<p>%s</p>' % config[5] interfaces_connected += '<p>%s</p>' % config[6] interfaces_connected += '<p>%s</p>' % config[7] interfaces_connected += '<p>%s</p>' % config[8] interfaces_connected += '<p>____________________</p>' link_network_connexion = '<a href="ncpa.cpl">Presione aqui para ver las conexiones de red en Panel de Control.</a>' info = '<table><tr><td>%s</td><td>%s</td></tr></table><p>%s</p>' % ( interfaces_disconnected, interfaces_connected, link_network_connexion) Message.information(Message(background_color='white', size='8'), u'Información', info, '')