当前位置: 首页>>代码示例>>Python>>正文


Python HIGDialog.__init__方法代码示例

本文整理汇总了Python中zenmapGUI.higwidgets.higdialogs.HIGDialog.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python HIGDialog.__init__方法的具体用法?Python HIGDialog.__init__怎么用?Python HIGDialog.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在zenmapGUI.higwidgets.higdialogs.HIGDialog的用法示例。


在下文中一共展示了HIGDialog.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from zenmapGUI.higwidgets.higdialogs import HIGDialog [as 别名]
# 或者: from zenmapGUI.higwidgets.higdialogs.HIGDialog import __init__ [as 别名]
    def __init__(self, nmap_output_view):
        HIGDialog.__init__(self, _("Nmap Output Properties"), buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE))

        self.nmap_highlight = NmapOutputHighlight()

        self.__create_widgets()
        self.__pack_widgets()
        self.highlight_tab()

        self.vbox.show_all()
开发者ID:zyan2,项目名称:ECPE170Fall,代码行数:12,代码来源:NmapOutputProperties.py

示例2: __init__

# 需要导入模块: from zenmapGUI.higwidgets.higdialogs import HIGDialog [as 别名]
# 或者: from zenmapGUI.higwidgets.higdialogs.HIGDialog import __init__ [as 别名]
    def __init__(self, type, value, tb):
        HIGDialog.__init__(self)
        gtk.Window.__init__(self)
        self.set_title(_('Crash Report'))
        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)

        self._create_widgets()
        self._pack_widgets()
        self._connect_widgets()

        trace = "".join(traceback.format_exception(type, value, tb))
        text = "Version: " + VERSION + "\n" + trace
        self.description_text.get_buffer().set_text(text)
开发者ID:CoolisTheName007,项目名称:nmap,代码行数:15,代码来源:CrashReport.py

示例3: __init__

# 需要导入模块: from zenmapGUI.higwidgets.higdialogs import HIGDialog [as 别名]
# 或者: from zenmapGUI.higwidgets.higdialogs.HIGDialog import __init__ [as 别名]
    def __init__(self):
        HIGDialog.__init__(self)
        self.set_title(_("About %s and %s") % (
            NMAP_DISPLAY_NAME, APP_DISPLAY_NAME))

        self.vbox.set_border_width(12)
        self.vbox.set_spacing(12)

        label = gtk.Label()
        label.set_markup(
                '<span size="xx-large" weight="bold">%s %s</span>' % (
                    escape(APP_DISPLAY_NAME), escape(VERSION)))
        label.set_selectable(True)
        self.vbox.pack_start(label)

        label = gtk.Label()
        label.set_markup(
                '<span size="small">%s</span>' % (escape(APP_COPYRIGHT)))
        self.vbox.pack_start(label)

        entry = _program_entry(NMAP_DISPLAY_NAME, NMAP_WEB_SITE, _(
            "%s is a free and open source utility for network exploration "
            "and security auditing.") % NMAP_DISPLAY_NAME)
        self.vbox.pack_start(entry)

        entry = _program_entry(APP_DISPLAY_NAME, APP_WEB_SITE, _(
        "%s is a multi-platform graphical %s frontend and results viewer. "
        "It was originally derived from %s.") % (
            APP_DISPLAY_NAME, NMAP_DISPLAY_NAME, UMIT_DISPLAY_NAME))
        self.vbox.pack_start(entry)

        entry = _program_entry(UMIT_DISPLAY_NAME, UMIT_WEB_SITE, _(
            "%s is an %s GUI created as part of the Nmap/Google Summer "
            "of Code program.") % (UMIT_DISPLAY_NAME, NMAP_DISPLAY_NAME))
        button = gtk.Button(_("%s credits") % UMIT_DISPLAY_NAME)
        button.connect("clicked", self._show_umit_credits)
        entry.hbox.pack_start(button, False)
        self.vbox.pack_start(entry)

        self.vbox.show_all()

        close_button = self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CANCEL)
        self.set_default_response(gtk.RESPONSE_CANCEL)
        close_button.grab_focus()

        self.set_has_separator(False)
        self.set_resizable(False)

        self._umit_credits_dialog = None

        self.connect("response", self._close)
开发者ID:EliseuTorres,项目名称:nmap,代码行数:53,代码来源:About.py


注:本文中的zenmapGUI.higwidgets.higdialogs.HIGDialog.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。