def __init__(self,
              parent,
              list_get_cb=None,
              popup_hide_object_signal_list=[]):
     FloaterListOpener.__init__(self, list_get_cb,
                                popup_hide_object_signal_list)
     WidgetEntryButton.__init__(self, parent)
Esempio n. 2
0
    def __init__(self, parent, editable, operation_stack_cb):
        WidgetEntryButton.__init__(self, parent, "editje/icon/options")

        self._operation_stack_cb = operation_stack_cb
        self._edit_grp = editable
        self._selstate = None
        self._pop = None
        self._edit_grp.part.callback_add("part.unselected", self._close_cb)
        self._edit_grp.part.callback_add("part.changed", self._close_cb)
    def __init__(self, parent, editable, operation_stack_cb):
        WidgetEntryButton.__init__(self, parent, "editje/icon/options")

        self._operation_stack_cb = operation_stack_cb
        self._edit_grp = editable
        self._selstate = None
        self._pop = None
        self._edit_grp.part.callback_add("part.unselected", self._close_cb)
        self._edit_grp.part.callback_add("part.changed", self._close_cb)
Esempio n. 4
0
    def __init__(self, parent, fnt_new_fnt_cb=None, fnt_list_get_cb=None,
                 workfile_name_get_cb=None):
        WidgetEntryButton.__init__(self, parent, "editje/icon/font_button")

        self._parent = parent
        self._fnt_new_fnt_cb = fnt_new_fnt_cb
        self._fnt_list_get_cb = fnt_list_get_cb
        self._workfile_name_get_cb = workfile_name_get_cb

        self.entry_value = "Sans"
Esempio n. 5
0
    def __init__(self,
                 parent,
                 fnt_new_fnt_cb=None,
                 fnt_list_get_cb=None,
                 workfile_name_get_cb=None):
        WidgetEntryButton.__init__(self, parent, "editje/icon/font_button")

        self._parent = parent
        self._fnt_new_fnt_cb = fnt_new_fnt_cb
        self._fnt_list_get_cb = fnt_list_get_cb
        self._workfile_name_get_cb = workfile_name_get_cb

        self.entry_value = "Sans"
 def _internal_value_set(self, val):
     WidgetEntryButton._internal_value_set(self, val)
     if self._is_default(val):
         self.entry.disabled_set(True)
     else:
         self.entry.disabled_set(False)
 def __init__(
     self, parent, list_get_cb=None, popup_hide_object_signal_list=[]):
     FloaterListOpener.__init__(
         self, list_get_cb, popup_hide_object_signal_list)
     WidgetEntryButton.__init__(self, parent)
Esempio n. 8
0
 def _internal_value_set(self, val):
     WidgetEntryButton._internal_value_set(self, val)
     if self._is_default(val):
         self.entry.disabled_set(True)
     else:
         self.entry.disabled_set(False)