Exemplo n.º 1
0
    def __init__(self, prop):
        gtk.Menu.__init__(self)
        PropItem.__init__(self, prop)

        self.set_take_focus(False)
        self.__create_items(self._prop.sub_props)
        self.show_all()
        self.set_sensitive(prop.sensitive)
Exemplo n.º 2
0
    def __init__(self, prop):
        gtk.Menu.__init__(self)
        PropItem.__init__(self, prop)

        self.set_take_focus(False)
        self.__create_items(self._prop.sub_props)
        self.show_all()
        self.set_sensitive(prop.sensitive)
Exemplo n.º 3
0
    def __init__(self, group, prop):
        gtk.RadioMenuItem.__init__(self, group, label = prop.label.text)
        PropItem.__init__(self, prop)

        self.set_active(self._prop.state == ibus.PROP_STATE_CHECKED)

        if prop.visible:
            self.set_no_show_all(False)
            self.show_all()
        else:
            self.set_no_show_all(True)
            self.hide_all()
Exemplo n.º 4
0
    def __init__(self, group, prop):
        gtk.RadioMenuItem.__init__(self, group, label=prop.label.text)
        PropItem.__init__(self, prop)

        self.set_active(self._prop.state == ibus.PROP_STATE_CHECKED)

        if prop.visible:
            self.set_no_show_all(False)
            self.show_all()
        else:
            self.set_no_show_all(True)
            self.hide_all()
Exemplo n.º 5
0
Arquivo: menu.py Projeto: XueWei/ibus
    def __init__(self, prop):
        gtk.ImageMenuItem.__init__(self, label=prop.label.text)
        PropItem.__init__(self, prop)

        if self._prop.icon:
            size = gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)
            self.set_image(icon.IconWidget(prop.icon, size[0]))

        if self._prop.visible:
            self.set_no_show_all(False)
            self.show_all()
        else:
            self.set_no_show_all(True)
            self.hide_all()
Exemplo n.º 6
0
    def __init__(self, prop):
        gtk.ImageMenuItem.__init__(self)
        PropItem.__init__(self, prop)

        if self._prop.icon:
            size = gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)
            self.set_image(icon.IconWidget(prop.icon, size[0]))
        if self._prop.label:
            self.set_label(prop.label.text)

        if self._prop.visible:
            self.set_no_show_all(False)
            self.show_all()
        else:
            self.set_no_show_all(True)
            self.hide_all()
Exemplo n.º 7
0
 def __init__(self):
     gtk.SeparatorMenuItem.__init__(self)
     PropItem.__init__(self, None)
Exemplo n.º 8
0
 def __init__(self, prop):
     gtk.ToggleToolButton.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
Exemplo n.º 9
0
 def __init__(self, prop):
     gtk.ToolButton.__init__(self, label = prop.label.text)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
Exemplo n.º 10
0
 def update_property(self, prop):
     PropItem.update_property(self, prop)
     self._menu.update_property(prop)
Exemplo n.º 11
0
 def __init__ (self, prop):
     gtk.SeparatorToolItem.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
Exemplo n.º 12
0
 def __init__(self, prop):
     gtk.ToggleToolButton.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
Exemplo n.º 13
0
 def __init__(self, prop):
     gtk.ToolButton.__init__(self, label=prop.label.text)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
Exemplo n.º 14
0
 def update_property(self, prop):
     PropItem.update_property(self, prop)
     self._menu.update_property(prop)
Exemplo n.º 15
0
 def __init__(self, prop):
     gtk.SeparatorToolItem.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
Exemplo n.º 16
0
 def __init__(self):
     gtk.SeparatorMenuItem.__init__(self)
     PropItem.__init__(self, None)