本文整理汇总了Python中kiwi.ui.proxywidget.ProxyWidgetMixin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ProxyWidgetMixin.__init__方法的具体用法?Python ProxyWidgetMixin.__init__怎么用?Python ProxyWidgetMixin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kiwi.ui.proxywidget.ProxyWidgetMixin
的用法示例。
在下文中一共展示了ProxyWidgetMixin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, action=gtk.FILE_CHOOSER_ACTION_OPEN, backend=None):
"""
Create a new ProxyFileChooserWidget object.
:param action:
:param backend:
"""
ProxyWidgetMixin.__init__(self)
self.props.data_type = str
gtk.FileChooserWidget.__init__(self, action=action, backend=backend)
示例2: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self):
gtk.ComboBox.__init__(self)
ProxyWidgetMixin.__init__(self)
PropertyObject.__init__(self)
self._helper = _EasyComboBoxHelper(self)
self.connect('changed', self._on__changed)
renderer = gtk.CellRendererText()
self.pack_start(renderer)
self.add_attribute(renderer, 'text', ComboColumn.LABEL)
示例3: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, action=Gtk.FileChooserAction.OPEN, backend=None):
"""
Create a new ProxyFileChooserWidget object.
:param action:
:param backend:
"""
ProxyWidgetMixin.__init__(self)
self.props.data_type = str
Gtk.FileChooserWidget.__init__(self, action=action, backend=backend)
示例4: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self):
self._color_attribute = None
gtk.ComboBox.__init__(self)
ProxyWidgetMixin.__init__(self)
self._helper = _EasyComboBoxHelper(self)
self.connect('changed', self._on__changed)
self._text_renderer = gtk.CellRendererText()
self.pack_start(self._text_renderer)
self.add_attribute(self._text_renderer, 'text', ComboColumn.LABEL)
示例5: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, label='', data_type=None):
"""
Create a new ProxyLabel object.
@param label: initial text
@param data_type: data type of label
"""
gtk.Label.__init__(self, label)
ProxyWidgetMixin.__init__(self)
self.props.data_type = data_type
self.set_use_markup(True)
self._attr_dic = { "style": None,
"weight": None,
"size": None,
"underline": None }
self._size_list = ('xx-small', 'x-small',
'small', 'medium',
'large', 'x-large',
'xx-large')
self.connect("notify::label", self._on_label_changed)
self._block_notify_label = False
示例6: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, fontname=None):
ProxyWidgetMixin.__init__(self)
PropertyObject.__init__(self, data_type=str)
gtk.FontButton.__init__(self, fontname)
示例7: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, label=None, use_underline=True):
gtk.CheckButton.__init__(self, label=label,
use_underline=use_underline)
ProxyWidgetMixin.__init__(self)
self.props.data_type = bool
示例8: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self):
ProxyWidgetMixin.__init__(self)
PropertyObject.__init__(self, data_type=str)
gtk.Button.__init__(self)
示例9: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, fontname=None):
ProxyWidgetMixin.__init__(self)
gtk.FontButton.__init__(self, fontname)
self.props.data_type = str
示例10: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, label=None, use_underline=True):
ProxyWidgetMixin.__init__(self)
PropertyObject.__init__(self, data_type=bool)
gtk.CheckButton.__init__(self, label=label,
use_underline=use_underline)
示例11: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, group=None, label=None, use_underline=True):
gtk.RadioButton.__init__(self, None, label, use_underline)
if group:
self.set_group(group)
ProxyWidgetMixin.__init__(self)
self.connect('group-changed', self._on_group_changed)
示例12: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, color=Gdk.Color(0, 0, 0)):
ProxyWidgetMixin.__init__(self)
Gtk.ColorButton.__init__(self, color=color)
示例13: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, label=None, use_underline=True):
gtk.CheckButton.__init__(self, label=label,
use_underline=use_underline)
ProxyWidgetMixin.__init__(self)
示例14: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self):
gtk.VScale.__init__(self)
ProxyWidgetMixin.__init__(self)
self.props.data_type = float
示例15: __init__
# 需要导入模块: from kiwi.ui.proxywidget import ProxyWidgetMixin [as 别名]
# 或者: from kiwi.ui.proxywidget.ProxyWidgetMixin import __init__ [as 别名]
def __init__(self, **kwargs):
ProxyWidgetMixin.__init__(self)
MultiCombo.__init__(self, **kwargs)
self.connect('item-added', self._on_combo__item_added)
self.connect('item-removed', self._on_combo__item_removed)