예제 #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)
예제 #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)
예제 #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()
예제 #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()
예제 #5
0
파일: menu.py 프로젝트: 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()
예제 #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()
예제 #7
0
 def __init__(self):
     gtk.SeparatorMenuItem.__init__(self)
     PropItem.__init__(self, None)
예제 #8
0
파일: toolitem.py 프로젝트: BBIO/ibus
 def __init__(self, prop):
     gtk.ToggleToolButton.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
예제 #9
0
파일: toolitem.py 프로젝트: BBIO/ibus
 def __init__(self, prop):
     gtk.ToolButton.__init__(self, label = prop.label.text)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
예제 #10
0
파일: toolitem.py 프로젝트: BBIO/ibus
 def update_property(self, prop):
     PropItem.update_property(self, prop)
     self._menu.update_property(prop)
예제 #11
0
파일: toolitem.py 프로젝트: BBIO/ibus
 def __init__ (self, prop):
     gtk.SeparatorToolItem.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
예제 #12
0
파일: toolitem.py 프로젝트: gzgithub/myibus
 def __init__(self, prop):
     gtk.ToggleToolButton.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
예제 #13
0
파일: toolitem.py 프로젝트: gzgithub/myibus
 def __init__(self, prop):
     gtk.ToolButton.__init__(self, label=prop.label.text)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
     self.property_changed()
예제 #14
0
파일: toolitem.py 프로젝트: gzgithub/myibus
 def update_property(self, prop):
     PropItem.update_property(self, prop)
     self._menu.update_property(prop)
예제 #15
0
파일: toolitem.py 프로젝트: gzgithub/myibus
 def __init__(self, prop):
     gtk.SeparatorToolItem.__init__(self)
     self.set_homogeneous(False)
     PropItem.__init__(self, prop)
예제 #16
0
 def __init__(self):
     gtk.SeparatorMenuItem.__init__(self)
     PropItem.__init__(self, None)