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


Python higboxes.HIGVBox类代码示例

本文整理汇总了Python中higwidgets.higboxes.HIGVBox的典型用法代码示例。如果您正苦于以下问题:Python HIGVBox类的具体用法?Python HIGVBox怎么用?Python HIGVBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: create_widgets

    def create_widgets(self):
	vboxmain = gtk.VBox()
	sw = gtk.ScrolledWindow()
        sw.set_shadow_type(gtk.SHADOW_ETCHED_IN)
        sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
	
	self.store = gtk.ListStore(str)	
        self.update_model()
	self.treeView = gtk.TreeView(self.store)
	#treeView.connect("row-activated", self.on_activated)
	#treeView.set_rules_hint(True)
	self.create_columns(self.treeView)
	sw.add(self.treeView)
		
	# buttons
        vbox = HIGVBox()

        btn = HIGButton(_("Edit..."), gtk.STOCK_EDIT)
        vbox.pack_start(btn, False, False)
        btn.connect("clicked", self._edit_template)
        
        btn = HIGButton(_("Remove"), gtk.STOCK_REMOVE)
        vbox.pack_start(btn, False, False)
        btn.connect("clicked", self._remove_template)
	
	hbox = HIGHBox()
	hbox.pack_start(sw, True, True)
	hbox.pack_start(vbox, False, False)
	vboxmain.pack_start(hbox, True, True, 0)
	self.add(vboxmain)
        self.show_all()	
开发者ID:aregee,项目名称:network-scanner,代码行数:31,代码来源:ScriptManager.py

示例2: __init__

 def __init__(self):
     HIGVBox.__init__(self)
     
     self._create_widgets()
     self._set_port_list()
     self._set_host_list()
     self._pack_widgets()
开发者ID:aregee,项目名称:network-scanner,代码行数:7,代码来源:ScanOpenPortsPage.py

示例3: __init__

    def __init__(self, preferences, show_label=True):
	HIGVBox.__init__(self)
        self.set_border_width(8)
	if show_label:
	    self.pack_start(HIGSectionLabel(_("Text Editor")), False, False)
	self.preferences = preferences
	self.create_widgets()
开发者ID:aregee,项目名称:network-scanner,代码行数:7,代码来源:ScriptManager.py

示例4: __create_widgets

    def __create_widgets(self):
        """
        Create widgets 
        """
        self.main_vbox = gtk.VBox()
        self.widgets = {}

        # UI Manager
        self.__create_ui_manager()
        # Table - contains menubar and toolbar

        # Menubar
        self.__create_menubar()
        # Toolbar
        self.__create_toolbar()

        self.display_frame = HIGFrame()
        self.display_frame.set_shadow_type(gtk.SHADOW_ETCHED_IN)
        self.display_frame.set_border_width(6)

        self.hbox_edit = gtk.HBox()
        self.hspacer = gtk.HPaned()
        self.hspacer.set_border_width(0)
        self.vbox_right = HIGVBox()
        self.vbox_left = HIGVBox()

        self.edit_mode_exp = gtk.Expander(_("Edit Modes"))
        self.edit_mode_box = self.create_edit_mode()

        self.notebook.set_scrollable(True)
        self.notebook.append_page(self.list_options_box, HIGEntryLabel(_("Option List")))

        self.list_options_box.reload()

        self.__create_status_bar()
开发者ID:aregee,项目名称:network-scanner,代码行数:35,代码来源:Main.py

示例5: __init__

    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        
        table = HIGTable()
        self.hbox = HIGHBox()
        
        self.description = HIGEntryLabel(_("""You wish to create a new profile,\
 or just want to quickly create a command and run it once?"""))
        self.profile_radio = gtk.RadioButton(None, _('Profile'))
        self.command_radio = gtk.RadioButton(self.profile_radio, _('Command'))
        self.command_radio.connect('toggled', self.enable_target)
        self.profile_radio.connect('toggled', self.disable_target)
        
        self.target_label = HIGEntryLabel(_("Target"))
        self.target_entry = gtk.Entry()
        self.set_completion()
        
        self.hbox._pack_noexpand_nofill(hig_box_space_holder())
        self.hbox._pack_noexpand_nofill(self.target_label)
        self.hbox._pack_expand_fill(self.target_entry)
        
        self.bar = ForwardBar()
        
        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(table)
        self._pack_noexpand_nofill(self.bar)
        
        table.attach(self.profile_radio,0,1,0,1, yoptions=0)
        table.attach(self.command_radio,0,1,1,2, yoptions=0)
        table.attach(self.hbox,0,1,2,3, yoptions=0)
        
        self.disable_target()
开发者ID:aregee,项目名称:network-scanner,代码行数:33,代码来源:Wizard.py

示例6: ZionHostsView

class ZionHostsView(gtk.Notebook):
    """
    """
    def __init__(self):
        """
        """
        gtk.Notebook.__init__(self)
        self.set_border_width(6)
        self.set_tab_pos(gtk.POS_TOP)

        self.__create_widgets()

    def __create_widgets(self):
        """
        """
        self.__scans_page = ZionScansPage()
        self.__ports_page = HIGVBox()
        
        self.open_ports = ScanOpenPortsPage()

        self.append_page(self.__scans_page, gtk.Label(_('Scans')))
        self.append_page(self.__ports_page, gtk.Label(_('Ports')))
        
        self.__ports_page.add(self.open_ports)
        
    def port_mode(self):
        self.open_ports.host.port_mode() 
    
    def get_scans_page(self):
        """
        """
        return self.__scans_page
开发者ID:aregee,项目名称:network-scanner,代码行数:32,代码来源:ZionScanNotebookPage.py

示例7: __init__

    def __init__(self, optiondisplay=None):
        HIGVBox.__init__(self)
        self.__model =  gtk.TreeStore(gtk.gdk.Pixbuf,gobject.TYPE_STRING)
        self.__treeview = gtk.TreeView(self.__model)
        self.__treeview.set_headers_visible(True)
        self.__treeview.drag_source_set(gtk.gdk.BUTTON1_MASK | 
                                        gtk.gdk.BUTTON3_MASK,
                                        target, gtk.gdk.ACTION_COPY | 
                                        gtk.gdk.ACTION_MOVE)
        self.__treeview.connect('drag_data_get', self.source_drag_data_get)
        column = gtk.TreeViewColumn()
        column.set_title('Name')
        render_pixbuf = gtk.CellRendererPixbuf()
        column.pack_start(render_pixbuf, expand=False)
        column.add_attribute(render_pixbuf, 'pixbuf', 0)
        render_text = gtk.CellRendererText()
        column.pack_start(render_text, expand=True)
        column.add_attribute(render_text, 'text', 1)
        self.__treeview.append_column(column)
        self.options = ListOptions(options)
        self.__scrolledwindow = HIGScrolledWindow()
        self.__scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,
                                         gtk.POLICY_AUTOMATIC)
        self.pack_start(self.__scrolledwindow, True, True )
        self.__scrolledwindow.add(self.__treeview)
        self.optiondisplay = optiondisplay

        self.exists_display = (self.optiondisplay != None ) #True or False
        self.set_option_display(optiondisplay)
开发者ID:aregee,项目名称:network-scanner,代码行数:29,代码来源:OptionManager.py

示例8: __init__

 def __init__(self):
     """Constructor"""
     HIGVBox.__init__(self)
     self.__create_widgets()
     self.__pack_widgets()
     self.__load_list()
     self.__connect_widgets()
     self.__init_db_text()
开发者ID:tianweidut,项目名称:openmonitor-desktop-agent,代码行数:8,代码来源:UpdatePage.py

示例9: __init__

    def __init__(self, radialnet):
        """
        """
        HIGVBox.__init__(self)

        self.radialnet = radialnet

        self.__create_widgets()
开发者ID:aregee,项目名称:network-scanner,代码行数:8,代码来源:ControlWidget.py

示例10: __init__

    def __init__(self, node):
        """
        """
        HIGVBox.__init__(self)
        self.set_border_width(6)

        self.__node = node

        self.__create_widgets()
开发者ID:aregee,项目名称:network-scanner,代码行数:9,代码来源:NodeNotebook.py

示例11: __init__

    def __init__(self, nmap_output_view):
        HIGVBox.__init__(self)
        
        self.nmap_highlight = NmapOutputHighlight()
        self.vbox = self
        
        self.highlight_tab()

        self.__pack_widgets()
        self.vbox.show_all()
开发者ID:aregee,项目名称:network-scanner,代码行数:10,代码来源:NmapOutputProperties.py

示例12: __init__

    def __init__(self, colors):
        HIGVBox.__init__(self)

        self.colors = colors
        self.set_border_width(5)
        self.set_spacing(6)

        self._create_widgets()
        self._set_diff_view()
        self._pack_widgets()
开发者ID:aregee,项目名称:network-scanner,代码行数:10,代码来源:DiffCompare.py

示例13: __create_widgets

 def __create_widgets(self):
     """
     """        
     self.left_box = HIGVBox()
     self.right_box = HIGVBox()
     
     ##########
     #Grade Box
     self.grade_box   = HIGVBox()
     self.grade_title = gtk.Label(
         "<span size='18000' weight='heavy'>Communication Grade</span>")
     self.grade_title.set_use_markup(True)
     self.grade_title.set_selectable(False)   
     self.mark_box = gtk.HBox()
     self.mark_image = [None] * 5
     for i in range(0,5):
         self.mark_image[i] = gtk.Image()
         self.mark_image[i].set_from_file(os.path.join(IMAGES_DIR,'emptymark.png'))
         self.mark_box.pack_start(self.mark_image[i])
           
     
     #############
     #Website Test
     self.webtest_box = HIGVBox() 
     self.webtest_title = gtk.Label(
         "<span size='18000' weight='heavy'>Website Test</span>") 
     self.webtest_title.set_use_markup(True)
     self.webtest_title.set_selectable(False)   
     
     status_str = "--"
     speed_str  = "--"
     throtthled_str = "--"
     self.webtest_status_label = gtk.Label("<span size='12500' weight='heavy'>Web Status: %s</span>" % (status_str))      
     self.webtest_speed_label = gtk.Label("<span size='12500' weight='heavy'>Network Speed: %s</span>" % (speed_str)) 
     self.webtest_throttled_label = gtk.Label("<span size='12500' weight='heavy'>Throttled Status: %s</span>" % (throtthled_str)) 
     self.webtest_status_label.set_use_markup(True)
     self.webtest_status_label.set_selectable(False) 
     self.webtest_speed_label.set_use_markup(True)
     self.webtest_speed_label.set_selectable(False) 
     self.webtest_throttled_label.set_use_markup(True)
     self.webtest_throttled_label.set_selectable(False)         
     ############
     #Service Box
     self.service_box  = HIGVBox()
     #self.service_title =  gtk.Label(
     #    "<span size='12500' weight='heavy'>Service Statistics</span>") 
     #self.service_title.set_use_markup(True)
     #self.service_title.set_selectable(False)     
     self.refresh_btn = gtk.Button(_("Refresh Now!")) 
     self.refresh_btn.set_size_request(108,72)
       
     self.display_bar = TimeLineDisplayBar(self)              
开发者ID:tianweidut,项目名称:openmonitor-desktop-agent,代码行数:52,代码来源:CapacityTab.py

示例14: __layout

    def __layout(self):
        self.set_position(gtk.WIN_POS_CENTER)

        main_vbox = HIGVBox()
        top_hbox = HIGHBox()

        top_hbox._pack_noexpand_nofill(self.iimg)
        top_hbox._pack_noexpand_nofill(self.topic)

        main_vbox._pack_noexpand_nofill(top_hbox)
        main_vbox._pack_noexpand_nofill(self.message)

        self.add(main_vbox)
开发者ID:aregee,项目名称:network-scanner,代码行数:13,代码来源:DataRemoval.py

示例15: ControlView

class ControlView(HIGExpanderRNet):
    """
    """
    def __init__(self, radialnet):
        """
        """
        HIGExpanderRNet.__init__(self, 'View')
        self.set_expanded(True)

        self.radialnet = radialnet

        self.__create_widgets()


    def __create_widgets(self):
        """
        """
        self.__vbox = HIGVBox(spacing=0)

        self.__zoom = ControlVariable('Zoom',
                                      self.radialnet.get_zoom,
                                      self.radialnet.set_zoom)

        self.__ring_gap = ControlRingGap(self.radialnet)
        self.__navigation = ControlNavigation(self.radialnet)

        self.__options = ControlOptions(self.radialnet)
        self.__options.set_border_width(0)

        self.__vbox._pack_expand_nofill(self.__options)
        self.__vbox._pack_noexpand_nofill(self.__navigation)
        self.__vbox._pack_noexpand_nofill(self.__zoom)
        self.__vbox._pack_noexpand_nofill(self.__ring_gap)

        self._add(self.__vbox)
开发者ID:aregee,项目名称:network-scanner,代码行数:35,代码来源:ControlWidget.py


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