本文整理汇总了Python中zenmapGUI.higwidgets.higlabels.HIGEntryLabel类的典型用法代码示例。如果您正苦于以下问题:Python HIGEntryLabel类的具体用法?Python HIGEntryLabel怎么用?Python HIGEntryLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HIGEntryLabel类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __create_widgets
def __create_widgets(self):
self.property_name_label = HIGEntryLabel("")
self.example_label = HIGEntryLabel("")
self.bold_tg_button = HIGToggleButton("", gtk.STOCK_BOLD)
self.italic_tg_button = HIGToggleButton("", gtk.STOCK_ITALIC)
self.underline_tg_button = HIGToggleButton("", gtk.STOCK_UNDERLINE)
self.text_color_button = HIGButton(_("Text"), stock=gtk.STOCK_SELECT_COLOR)
self.highlight_color_button = HIGButton(_("Highlight"), stock=gtk.STOCK_SELECT_COLOR)
示例2: __create_widgets
def __create_widgets(self):
self.host_status_expander = gtk.Expander(
'<b>' + _('Host Status') + '</b>')
self.address_expander = gtk.Expander('<b>' + _('Addresses') + '</b>')
self.hostnames_expander = gtk.Expander('<b>' + _('Hostnames') + '</b>')
self.os_expander = gtk.Expander('<b>' + _('Operating System') + '</b>')
self.portsused_expander = gtk.Expander(
'<b>' + _('Ports used') + '</b>')
self.osclass_expander = gtk.Expander('<b>' + _('OS Classes') + '</b>')
self.tcp_expander = gtk.Expander('<b>' + _('TCP Sequence') + '</b>')
self.ip_expander = gtk.Expander('<b>' + _('IP ID Sequence') + '</b>')
self.tcpts_expander = gtk.Expander(
'<b>' + _('TCP TS Sequence') + '</b>')
self.comment_expander = gtk.Expander('<b>' + _('Comments') + '</b>')
self.os_image = gtk.Image()
self.vulnerability_image = gtk.Image()
# Host Status expander
self.host_state_label = HIGEntryLabel(_('State:'))
self.info_host_state_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_('Open ports:'))
self.info_open_ports = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_('Filtered ports:'))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_('Closed ports:'))
self.info_closed_ports = HIGEntryLabel(na)
self.scanned_label = HIGEntryLabel(_('Scanned ports:'))
self.info_scanned_label = HIGEntryLabel(na)
self.uptime_label = HIGEntryLabel(_('Up time:'))
self.info_uptime_label = HIGEntryLabel(na)
self.lastboot_label = HIGEntryLabel(_('Last boot:'))
self.info_lastboot_label = HIGEntryLabel(na)
# Addresses expander
self.ipv4_label = HIGEntryLabel(_('IPv4:'))
self.info_ipv4_label = HIGEntryLabel(na)
self.ipv6_label = HIGEntryLabel(_('IPv6:'))
self.info_ipv6_label = HIGEntryLabel(na)
self.mac_label = HIGEntryLabel(_('MAC:'))
self.info_mac_label = HIGEntryLabel(na)
self.vendor_label = HIGEntryLabel(_('Vendor:'))
self.info_vendor_label = HIGEntryLabel(na)
示例3: __create_widgets
def __create_widgets(self):
self.host_status_expander = gtk.Expander("<b>" + _("Host Status") + "</b>")
self.address_expander = gtk.Expander("<b>" + _("Addresses") + "</b>")
self.hostnames_expander = gtk.Expander("<b>" + _("Hostnames") + "</b>")
self.os_expander = gtk.Expander("<b>" + _("Operating System") + "</b>")
self.portsused_expander = gtk.Expander("<b>" + _("Ports used") + "</b>")
self.osclass_expander = gtk.Expander("<b>" + _("OS Classes") + "</b>")
self.tcp_expander = gtk.Expander("<b>" + _("TCP Sequence") + "</b>")
self.ip_expander = gtk.Expander("<b>" + _("IP ID Sequence") + "</b>")
self.tcpts_expander = gtk.Expander("<b>" + _("TCP TS Sequence") + "</b>")
self.comment_expander = gtk.Expander("<b>" + _("Comments") + "</b>")
self.os_image = gtk.Image()
self.vulnerability_image = gtk.Image()
# Host Status expander
self.host_state_label = HIGEntryLabel(_("State:"))
self.info_host_state_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_("Open ports:"))
self.info_open_ports = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_("Filtered ports:"))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_("Closed ports:"))
self.info_closed_ports = HIGEntryLabel(na)
self.scanned_label = HIGEntryLabel(_("Scanned ports:"))
self.info_scanned_label = HIGEntryLabel(na)
self.uptime_label = HIGEntryLabel(_("Up time:"))
self.info_uptime_label = HIGEntryLabel(na)
self.lastboot_label = HIGEntryLabel(_("Last boot:"))
self.info_lastboot_label = HIGEntryLabel(na)
# Addresses expander
self.ipv4_label = HIGEntryLabel(_("IPv4:"))
self.info_ipv4_label = HIGEntryLabel(na)
self.ipv6_label = HIGEntryLabel(_("IPv6:"))
self.info_ipv6_label = HIGEntryLabel(na)
self.mac_label = HIGEntryLabel(_("MAC:"))
self.info_mac_label = HIGEntryLabel(na)
self.vendor_label = HIGEntryLabel(_("Vendor:"))
self.info_vendor_label = HIGEntryLabel(na)
示例4: HighlightProperty
class HighlightProperty(object):
def __init__(self, property_name, property):
self.__create_widgets()
self.property_name = property_name
self.property_label = property[0].capitalize()
self.example = property[1]
self.bold = property[2]
self.italic = property[3]
self.underline = property[4]
self.text_color = property[5]
self.highlight_color = property[6]
self.__connect_buttons()
def __create_widgets(self):
self.property_name_label = HIGEntryLabel("")
self.example_label = HIGEntryLabel("")
self.bold_tg_button = HIGToggleButton("", gtk.STOCK_BOLD)
self.italic_tg_button = HIGToggleButton("", gtk.STOCK_ITALIC)
self.underline_tg_button = HIGToggleButton("", gtk.STOCK_UNDERLINE)
self.text_color_button = HIGButton(
_("Text"), stock=gtk.STOCK_SELECT_COLOR)
self.highlight_color_button = HIGButton(
_("Highlight"), stock=gtk.STOCK_SELECT_COLOR)
def __connect_buttons(self):
self.bold_tg_button.connect("toggled", self.update_example)
self.italic_tg_button.connect("toggled", self.update_example)
self.underline_tg_button.connect("toggled", self.update_example)
self.text_color_button.connect("clicked", self.text_color_dialog)
self.highlight_color_button.connect(
"clicked", self.highlight_color_dialog)
####################################
# Text color dialog
def text_color_dialog(self, widget):
color_dialog = gtk.ColorSelectionDialog(
"%s %s" % (self.label, _("text color")))
color_dialog.colorsel.set_current_color(self.text_color)
color_dialog.ok_button.connect(
"clicked", self.text_color_dialog_ok, color_dialog)
color_dialog.cancel_button.connect(
"clicked", self.text_color_dialog_cancel, color_dialog)
color_dialog.connect(
"delete-event", self.text_color_dialog_close, color_dialog)
color_dialog.run()
def text_color_dialog_ok(self, widget, color_dialog):
self.text_color = color_dialog.colorsel.get_current_color()
color_dialog.destroy()
self.update_example()
def text_color_dialog_cancel(self, widget, color_dialog):
color_dialog.destroy()
def text_color_dialog_close(self, widget, extra, color_dialog):
color_dialog.destroy()
#########################################
# Highlight color dialog
def highlight_color_dialog(self, widget):
color_dialog = gtk.ColorSelectionDialog(
"%s %s" % (self.property_name, _("highlight color")))
color_dialog.colorsel.set_current_color(self.highlight_color)
color_dialog.ok_button.connect(
"clicked", self.highlight_color_dialog_ok, color_dialog)
color_dialog.cancel_button.connect(
"clicked", self.highlight_color_dialog_cancel,
color_dialog)
color_dialog.connect(
"delete-event", self.highlight_color_dialog_close,
color_dialog)
color_dialog.run()
def highlight_color_dialog_ok(self, widget, color_dialog):
self.highlight_color = color_dialog.colorsel.get_current_color()
color_dialog.destroy()
self.update_example()
def highlight_color_dialog_cancel(self, widget, color_dialog):
color_dialog.destroy()
def highlight_color_dialog_close(self, widget, extra, color_dialog):
color_dialog.destroy()
def update_example(self, widget=None):
start = 0
end = len(self.example)
attributes = pango.AttrList()
#.........这里部分代码省略.........
示例5: HostDetails
class HostDetails(HIGVBox):
def __init__(self, host):
HIGVBox.__init__(self)
self.__create_widgets()
self.set_os_image(get_os_logo(host))
self.set_vulnerability_image(get_vulnerability_logo(host.get_open_ports()))
self.set_host_status(
{
"state": host.get_state(),
"open": str(host.get_open_ports()),
"filtered": str(host.get_filtered_ports()),
"closed": str(host.get_closed_ports()),
"scanned": str(host.get_scanned_ports()),
"uptime": host.get_uptime()["seconds"],
"lastboot": host.get_uptime()["lastboot"],
}
)
addresses = {}
if host.ip is not None:
addresses["ipv4"] = host.ip["addr"]
if host.ipv6 is not None:
addresses["ipv6"] = host.ipv6["addr"]
if host.mac is not None:
addresses["mac"] = host.mac["addr"]
self.set_addresses(addresses)
self.set_hostnames(host.get_hostnames())
os = host.get_best_osmatch()
if os:
os["portsused"] = host.get_ports_used()
self.set_os(os)
self.set_tcpseq(host.get_tcpsequence())
self.set_ipseq(host.get_ipidsequence())
self.set_tcptsseq(host.get_tcptssequence())
self.set_comment(host.comment)
def __create_widgets(self):
self.host_status_expander = gtk.Expander("<b>" + _("Host Status") + "</b>")
self.address_expander = gtk.Expander("<b>" + _("Addresses") + "</b>")
self.hostnames_expander = gtk.Expander("<b>" + _("Hostnames") + "</b>")
self.os_expander = gtk.Expander("<b>" + _("Operating System") + "</b>")
self.portsused_expander = gtk.Expander("<b>" + _("Ports used") + "</b>")
self.osclass_expander = gtk.Expander("<b>" + _("OS Classes") + "</b>")
self.tcp_expander = gtk.Expander("<b>" + _("TCP Sequence") + "</b>")
self.ip_expander = gtk.Expander("<b>" + _("IP ID Sequence") + "</b>")
self.tcpts_expander = gtk.Expander("<b>" + _("TCP TS Sequence") + "</b>")
self.comment_expander = gtk.Expander("<b>" + _("Comments") + "</b>")
self.os_image = gtk.Image()
self.vulnerability_image = gtk.Image()
# Host Status expander
self.host_state_label = HIGEntryLabel(_("State:"))
self.info_host_state_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_("Open ports:"))
self.info_open_ports = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_("Filtered ports:"))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_("Closed ports:"))
self.info_closed_ports = HIGEntryLabel(na)
self.scanned_label = HIGEntryLabel(_("Scanned ports:"))
self.info_scanned_label = HIGEntryLabel(na)
self.uptime_label = HIGEntryLabel(_("Up time:"))
self.info_uptime_label = HIGEntryLabel(na)
self.lastboot_label = HIGEntryLabel(_("Last boot:"))
self.info_lastboot_label = HIGEntryLabel(na)
# Addresses expander
self.ipv4_label = HIGEntryLabel(_("IPv4:"))
self.info_ipv4_label = HIGEntryLabel(na)
self.ipv6_label = HIGEntryLabel(_("IPv6:"))
self.info_ipv6_label = HIGEntryLabel(na)
self.mac_label = HIGEntryLabel(_("MAC:"))
self.info_mac_label = HIGEntryLabel(na)
self.vendor_label = HIGEntryLabel(_("Vendor:"))
self.info_vendor_label = HIGEntryLabel(na)
def create_table_hbox(self):
table = HIGTable()
hbox = HIGHBox()
hbox._pack_noexpand_nofill(hig_box_space_holder())
hbox._pack_noexpand_nofill(table)
return table, hbox
#.........这里部分代码省略.........
示例6: HostDetails
class HostDetails(HIGVBox):
def __init__(self, host):
HIGVBox.__init__(self)
self.__create_widgets()
self.set_os_image(get_os_logo(host))
self.set_vulnerability_image(
get_vulnerability_logo(host.get_open_ports()))
self.set_host_status({'state': host.get_state(),
'open': str(host.get_open_ports()),
'filtered': str(host.get_filtered_ports()),
'closed': str(host.get_closed_ports()),
'scanned': str(host.get_scanned_ports()),
'uptime': host.get_uptime()['seconds'],
'lastboot': host.get_uptime()['lastboot']})
addresses = {}
if host.ip is not None:
addresses['ipv4'] = host.ip['addr']
if host.ipv6 is not None:
addresses['ipv6'] = host.ipv6['addr']
if host.mac is not None:
addresses['mac'] = host.mac['addr']
self.set_addresses(addresses)
self.set_hostnames(host.get_hostnames())
os = host.get_best_osmatch()
if os:
os['portsused'] = host.get_ports_used()
self.set_os(os)
self.set_tcpseq(host.get_tcpsequence())
self.set_ipseq(host.get_ipidsequence())
self.set_tcptsseq(host.get_tcptssequence())
self.set_comment(host.comment)
def __create_widgets(self):
self.host_status_expander = gtk.Expander(
'<b>' + _('Host Status') + '</b>')
self.address_expander = gtk.Expander('<b>' + _('Addresses') + '</b>')
self.hostnames_expander = gtk.Expander('<b>' + _('Hostnames') + '</b>')
self.os_expander = gtk.Expander('<b>' + _('Operating System') + '</b>')
self.portsused_expander = gtk.Expander(
'<b>' + _('Ports used') + '</b>')
self.osclass_expander = gtk.Expander('<b>' + _('OS Classes') + '</b>')
self.tcp_expander = gtk.Expander('<b>' + _('TCP Sequence') + '</b>')
self.ip_expander = gtk.Expander('<b>' + _('IP ID Sequence') + '</b>')
self.tcpts_expander = gtk.Expander(
'<b>' + _('TCP TS Sequence') + '</b>')
self.comment_expander = gtk.Expander('<b>' + _('Comments') + '</b>')
self.os_image = gtk.Image()
self.vulnerability_image = gtk.Image()
# Host Status expander
self.host_state_label = HIGEntryLabel(_('State:'))
self.info_host_state_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_('Open ports:'))
self.info_open_ports = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_('Filtered ports:'))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_('Closed ports:'))
self.info_closed_ports = HIGEntryLabel(na)
self.scanned_label = HIGEntryLabel(_('Scanned ports:'))
self.info_scanned_label = HIGEntryLabel(na)
self.uptime_label = HIGEntryLabel(_('Up time:'))
self.info_uptime_label = HIGEntryLabel(na)
self.lastboot_label = HIGEntryLabel(_('Last boot:'))
self.info_lastboot_label = HIGEntryLabel(na)
# Addresses expander
self.ipv4_label = HIGEntryLabel(_('IPv4:'))
self.info_ipv4_label = HIGEntryLabel(na)
self.ipv6_label = HIGEntryLabel(_('IPv6:'))
self.info_ipv6_label = HIGEntryLabel(na)
self.mac_label = HIGEntryLabel(_('MAC:'))
self.info_mac_label = HIGEntryLabel(na)
self.vendor_label = HIGEntryLabel(_('Vendor:'))
self.info_vendor_label = HIGEntryLabel(na)
def create_table_hbox(self):
table = HIGTable()
hbox = HIGHBox()
hbox._pack_noexpand_nofill(hig_box_space_holder())
hbox._pack_noexpand_nofill(table)
return table, hbox
#.........这里部分代码省略.........
示例7: __init__
def __init__(self, scan):
HIGVBox.__init__(self)
na = _('Not available')
# Command info
self.command_label = HIGEntryLabel(_('Command:'))
self.info_command_label = HIGEntryLabel(na)
self.nmap_version_label = HIGEntryLabel(_('Nmap Version:'))
self.info_nmap_version_label = HIGEntryLabel(na)
self.verbose_label = HIGEntryLabel(_('Verbosity level:'))
self.info_verbose_label = HIGEntryLabel(na)
self.debug_label = HIGEntryLabel(_('Debug level:'))
self.info_debug_label = HIGEntryLabel(na)
self.command_expander = gtk.Expander(
"<b>" + _("Command Info") + "</b>")
self.command_expander.set_use_markup(True)
self.command_table = HIGTable()
self.command_table.set_border_width(5)
self.command_table.set_row_spacings(6)
self.command_table.set_col_spacings(6)
self.command_hbox = HIGHBox()
self.command_hbox._pack_noexpand_nofill(hig_box_space_holder())
self.command_hbox._pack_noexpand_nofill(self.command_table)
self.command_table.attach(self.command_label, 0, 1, 0, 1)
self.command_table.attach(self.info_command_label, 1, 2, 0, 1)
self.command_table.attach(self.nmap_version_label, 0, 1, 1, 2)
self.command_table.attach(self.info_nmap_version_label, 1, 2, 1, 2)
self.command_table.attach(self.verbose_label, 0, 1, 2, 3)
self.command_table.attach(self.info_verbose_label, 1, 2, 2, 3)
self.command_table.attach(self.debug_label, 0, 1, 3, 4)
self.command_table.attach(self.info_debug_label, 1, 2, 3, 4)
self.command_expander.add(self.command_hbox)
self._pack_noexpand_nofill(self.command_expander)
self.command_expander.set_expanded(True)
# General info:
self.start_label = HIGEntryLabel(_('Started on:'))
self.info_start_label = HIGEntryLabel(na)
self.finished_label = HIGEntryLabel(_('Finished on:'))
self.info_finished_label = HIGEntryLabel(na)
self.host_up_label = HIGEntryLabel(_('Hosts up:'))
self.info_hosts_up_label = HIGEntryLabel(na)
self.host_down_label = HIGEntryLabel(_('Hosts down:'))
self.info_hosts_down_label = HIGEntryLabel(na)
self.host_scanned_label = HIGEntryLabel(_('Hosts scanned:'))
self.info_hosts_scanned_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_('Open ports:'))
self.info_open_label = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_('Filtered ports:'))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_('Closed ports:'))
self.info_closed_label = HIGEntryLabel(na)
self.general_expander = gtk.Expander(
"<b>" + _("General Info") + "</b>")
self.general_expander.set_use_markup(True)
self.general_table = HIGTable()
self.general_table.set_border_width(5)
self.general_table.set_row_spacings(6)
self.general_table.set_col_spacings(6)
self.general_hbox = HIGHBox()
self.general_hbox._pack_noexpand_nofill(hig_box_space_holder())
self.general_hbox._pack_noexpand_nofill(self.general_table)
self.general_table.attach(self.start_label, 0, 1, 0, 1)
self.general_table.attach(self.info_start_label, 1, 2, 0, 1)
self.general_table.attach(self.finished_label, 0, 1, 1, 2)
self.general_table.attach(self.info_finished_label, 1, 2, 1, 2)
self.general_table.attach(self.host_up_label, 0, 1, 2, 3)
self.general_table.attach(self.info_hosts_up_label, 1, 2, 2, 3)
self.general_table.attach(self.host_down_label, 0, 1, 3, 4)
self.general_table.attach(self.info_hosts_down_label, 1, 2, 3, 4)
self.general_table.attach(self.host_scanned_label, 0, 1, 4, 5)
self.general_table.attach(self.info_hosts_scanned_label, 1, 2, 4, 5)
#.........这里部分代码省略.........
示例8: ScanRunDetailsPage
class ScanRunDetailsPage(HIGVBox):
def __init__(self, scan):
HIGVBox.__init__(self)
na = _('Not available')
# Command info
self.command_label = HIGEntryLabel(_('Command:'))
self.info_command_label = HIGEntryLabel(na)
self.nmap_version_label = HIGEntryLabel(_('Nmap Version:'))
self.info_nmap_version_label = HIGEntryLabel(na)
self.verbose_label = HIGEntryLabel(_('Verbosity level:'))
self.info_verbose_label = HIGEntryLabel(na)
self.debug_label = HIGEntryLabel(_('Debug level:'))
self.info_debug_label = HIGEntryLabel(na)
self.command_expander = gtk.Expander(
"<b>" + _("Command Info") + "</b>")
self.command_expander.set_use_markup(True)
self.command_table = HIGTable()
self.command_table.set_border_width(5)
self.command_table.set_row_spacings(6)
self.command_table.set_col_spacings(6)
self.command_hbox = HIGHBox()
self.command_hbox._pack_noexpand_nofill(hig_box_space_holder())
self.command_hbox._pack_noexpand_nofill(self.command_table)
self.command_table.attach(self.command_label, 0, 1, 0, 1)
self.command_table.attach(self.info_command_label, 1, 2, 0, 1)
self.command_table.attach(self.nmap_version_label, 0, 1, 1, 2)
self.command_table.attach(self.info_nmap_version_label, 1, 2, 1, 2)
self.command_table.attach(self.verbose_label, 0, 1, 2, 3)
self.command_table.attach(self.info_verbose_label, 1, 2, 2, 3)
self.command_table.attach(self.debug_label, 0, 1, 3, 4)
self.command_table.attach(self.info_debug_label, 1, 2, 3, 4)
self.command_expander.add(self.command_hbox)
self._pack_noexpand_nofill(self.command_expander)
self.command_expander.set_expanded(True)
# General info:
self.start_label = HIGEntryLabel(_('Started on:'))
self.info_start_label = HIGEntryLabel(na)
self.finished_label = HIGEntryLabel(_('Finished on:'))
self.info_finished_label = HIGEntryLabel(na)
self.host_up_label = HIGEntryLabel(_('Hosts up:'))
self.info_hosts_up_label = HIGEntryLabel(na)
self.host_down_label = HIGEntryLabel(_('Hosts down:'))
self.info_hosts_down_label = HIGEntryLabel(na)
self.host_scanned_label = HIGEntryLabel(_('Hosts scanned:'))
self.info_hosts_scanned_label = HIGEntryLabel(na)
self.open_label = HIGEntryLabel(_('Open ports:'))
self.info_open_label = HIGEntryLabel(na)
self.filtered_label = HIGEntryLabel(_('Filtered ports:'))
self.info_filtered_label = HIGEntryLabel(na)
self.closed_label = HIGEntryLabel(_('Closed ports:'))
self.info_closed_label = HIGEntryLabel(na)
self.general_expander = gtk.Expander(
"<b>" + _("General Info") + "</b>")
self.general_expander.set_use_markup(True)
self.general_table = HIGTable()
self.general_table.set_border_width(5)
self.general_table.set_row_spacings(6)
self.general_table.set_col_spacings(6)
self.general_hbox = HIGHBox()
self.general_hbox._pack_noexpand_nofill(hig_box_space_holder())
self.general_hbox._pack_noexpand_nofill(self.general_table)
self.general_table.attach(self.start_label, 0, 1, 0, 1)
self.general_table.attach(self.info_start_label, 1, 2, 0, 1)
self.general_table.attach(self.finished_label, 0, 1, 1, 2)
self.general_table.attach(self.info_finished_label, 1, 2, 1, 2)
self.general_table.attach(self.host_up_label, 0, 1, 2, 3)
self.general_table.attach(self.info_hosts_up_label, 1, 2, 2, 3)
self.general_table.attach(self.host_down_label, 0, 1, 3, 4)
self.general_table.attach(self.info_hosts_down_label, 1, 2, 3, 4)
self.general_table.attach(self.host_scanned_label, 0, 1, 4, 5)
self.general_table.attach(self.info_hosts_scanned_label, 1, 2, 4, 5)
#.........这里部分代码省略.........