Ejemplo n.º 1
0
 def __init__(self):
     """Create a new CustomButton.  active_image will be displayed while
     the button is pressed.  The image must have the same size.
     """
     Widget.__init__(self)
     Drawable.__init__(self)
     self.set_widget(CustomButtonWidget())
     self.create_signal('clicked')
     self.forward_signal('clicked')
Ejemplo n.º 2
0
 def __init__(self):
     Widget.__init__(self)
     Drawable.__init__(self)
     self.create_signal('pressed')
     self.create_signal('released')
     self.create_signal('changed')
     self.create_signal('moved')
     if self.is_horizontal():
         self.set_widget(CustomHScaleWidget())
     else:
         self.set_widget(CustomVScaleWidget())
     self.wrapped_widget_connect('move-slider', self.on_slider_move)
Ejemplo n.º 3
0
 def __init__(self):
     Widget.__init__(self)
     Drawable.__init__(self)
     self.set_widget(ContinuousCustomButtonWidget())
     self.button_down = False
     self.button_held = False
     self.timeout = None
     self.create_signal('clicked')
     self.create_signal('held-down')
     self.create_signal('released')
     self.wrapped_widget_connect('pressed', self.on_pressed)
     self.wrapped_widget_connect('released', self.on_released)
     self.wrapped_widget_connect('clicked', self.on_clicked)
     self.initial_delay = 0.6
     self.repeat_delay = 0.3
Ejemplo n.º 4
0
 def __init__(self):
     Widget.__init__(self)
     Drawable.__init__(self)
     self._gtk_cursor = None
     self._entry_handlers = None
Ejemplo n.º 5
0
 def __init__(self):
     Widget.__init__(self)
     Drawable.__init__(self)
     self._gtk_cursor = None
     self._entry_handlers = None