本文整理汇总了Python中higwidgets.higboxes.HIGHBox.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python HIGHBox.__init__方法的具体用法?Python HIGHBox.__init__怎么用?Python HIGHBox.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类higwidgets.higboxes.HIGHBox
的用法示例。
在下文中一共展示了HIGHBox.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
HIGHBox.__init__(self)
self.frame = gtk.Frame()
self._pack_expand_fill(self.frame)
self.__create_draw_area()
示例2: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
HIGHBox.__init__(self)
self._create_target()
self._create_profile()
self.scan_button = gtk.Button(_("Scan"))
self._pack_noexpand_nofill(self.target_label)
self._pack_expand_fill(self.target_entry)
self._pack_noexpand_nofill(self.profile_label)
self._pack_expand_fill(self.profile_entry)
self._pack_noexpand_nofill(self.scan_button)
self.target_entry.set_focus_child(self.target_entry.child)
self.profile_entry.set_focus_child(self.profile_entry.child)
self.target_entry.child.grab_focus()
# Events
self.target_entry.child.connect('key-press-event',\
self.next, self.profile_entry.child)
self.target_entry.child.connect('activate',
lambda x: self.profile_entry.child.grab_focus())
self.profile_entry.child.connect('activate',
lambda x: self.scan_button.clicked())
示例3: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self, label=None, option=None, hint=None):
HIGHBox.__init__(self)
self.cbutton = OptionCheck(label,option)
self.option = option
self.hint = Hint(hint)
self.pack_start(self.cbutton, False, False)
self.pack_start(self.hint, False, False, 5)
示例4: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
HIGHBox.__init__(self)
self.entry = gtk.Entry()
self.button = HIGButton(stock=gtk.STOCK_OPEN)
self.entry.set_width_chars(20)
self.button.connect("clicked", self.open_dialog)
self._pack_expand_fill(self.entry)
self._pack_noexpand_nofill(self.button)
示例5: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self, name, get_function, set_function, increment=1):
"""
"""
HIGHBox.__init__(self, spacing=0)
self.__increment_pass = increment
self.__increment_time = 200
self.__increment = False
self.__name = name
self.__get_function = get_function
self.__set_function = set_function
self.__create_widgets()
示例6: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
""" Constructor """
HIGHBox.__init__(self)
self.scroll = HIGScrolledWindow()
self._box = HIGHBox()
self._icons_list = []
self._tabstruct = TabStruct()
self.__current = [0]
self.__model = gtk.ListStore(str, gtk.gdk.Pixbuf)
#self.__model = gtk.ListStore(str, HIGHBox)
self.__pixmap_d = Path.pixmaps_dir
self.__icon = gtk.IconView()
self.__icon.set_model(self.__model)
self.__icon.set_text_column(0)
self.__icon.set_pixbuf_column(1)
self.__icon.set_orientation(gtk.ORIENTATION_VERTICAL)
self.__icon.set_selection_mode(gtk.SELECTION_SINGLE)
# Change background color -- FIXME
#self.__icon.set_name("icon tabs")
#gtk.rc_parse_string(
#"""
#style "iconview"
#{
#bg[PRELIGHT] = { 0.75, 3, 1 }
#}
#class 'GtkIconView' style 'iconview'
#""")
map = self.__icon.get_colormap()
colour = map.alloc_color("#FFF9E9") # light red
style = self.__icon.get_style().copy()
style.base[gtk.STATE_NORMAL] = colour
self.__icon.set_style(style)
#self.cellpb = gtk.CellRendererPixbuf()
#self.cellpb.set_property('cell-background', 'yellow')
#self.__icon.pack_start(self.cellpb, False)
#self.__icon.set_attributes(self.cellpb, pixbuf=0)
self.pack_start(self.scroll, True, True)
self.scroll.add(self.__icon)
示例7: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
HIGHBox.__init__(self)
self._create_profile()
self.change_button = gtk.Button(_("Change"))
self._pack_noexpand_nofill(self.profile_label)
self._pack_expand_fill(self.profile_entry)
self._pack_noexpand_nofill(self.change_button)
self.profile_entry.set_focus_child(self.profile_entry.child)
# Events
self.profile_entry.child.connect('activate',
lambda x: self.change_button.clicked())
示例8: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self, help=True, cancel=True, back=True, apply=True):
HIGHBox.__init__(self)
self.set_homogeneous(True)
self.help = HIGButton(stock=gtk.STOCK_HELP)
self.cancel = HIGButton(stock=gtk.STOCK_CANCEL)
self.back = HIGButton(stock=gtk.STOCK_GO_BACK)
self.apply = HIGButton(stock=gtk.STOCK_APPLY)
self._pack_expand_fill(self.help)
self._pack_expand_fill(hig_box_space_holder())
self._pack_expand_fill(self.cancel)
self._pack_expand_fill(self.back)
self._pack_expand_fill(self.apply)
if not help:
self.help.set_sensitive(False)
if not cancel:
self.cancel.set_sensitive(False)
if not back:
self.back.set_sensitive(False)
if not apply:
self.apply.set_sensitive(False)
示例9: __init__
# 需要导入模块: from higwidgets.higboxes import HIGHBox [as 别名]
# 或者: from higwidgets.higboxes.HIGHBox import __init__ [as 别名]
def __init__(self):
"""
"""
HIGHBox.__init__(self)
# Creating widgets
self.__create_widgets()
# Setting scrolled window
self.__set_scrolled_window()
# Setting text view
self.__set_text_view()
# Getting text buffer
self.text_buffer = self.text_view.get_buffer()
# Adding widgets
self.__boxalign = gtk.Alignment()
self.__boxalign.set_padding(8, 0, 0, 8)
self.__boxalign.add(self.__hbox)
self._pack_expand_fill(self.scrolled)
self._pack_noexpand_nofill(self.__boxalign)