Exemplo n.º 1
0
 def __init__(self, renderer):
     Widget.__init__(self)
     self.set_widget(PersistentWindow())
     self._widget.set_double_buffered(False)
     self._widget.add_events(gtk.gdk.POINTER_MOTION_MASK)
     self._widget.add_events(gtk.gdk.BUTTON_PRESS_MASK)
     renderer.set_widget(self._widget)
Exemplo n.º 2
0
 def __init__(self, renderer):
     Widget.__init__(self)
     self.set_widget(PersistentWindow())
     self._widget.set_double_buffered(False)
     self._widget.add_events(gtk.gdk.POINTER_MOTION_MASK)
     self._widget.add_events(gtk.gdk.BUTTON_PRESS_MASK)
     renderer.set_widget(self._widget)
Exemplo n.º 3
0
    def __init__(self):
        Widget.__init__(self)
        self.set_widget(BrowserWidget())
        self.url = None

        # TODO: implement net-start and net-stop signaling on windows.
        self.create_signal('net-start')
        self.create_signal('net-stop')
        self.create_signal('download-finished')
Exemplo n.º 4
0
    def __init__(self, url):
        Widget.__init__(self)
        self.set_widget(UpdateAvailableBrowserWidget(url))
        self._widget.set_property('can-focus', True)
        self.url = url

        # TODO: implement net-start and net-stop signaling on windows.
        self.create_signal('net-start')
        self.create_signal('net-stop')
Exemplo n.º 5
0
    def __init__(self):
        Widget.__init__(self)
        self.set_widget(BrowserWidget())
        self._widget.set_property('can-focus', True)
        self.url = None

        # TODO: implement net-start and net-stop signaling on windows.
        self.create_signal('net-start')
        self.create_signal('net-stop')
Exemplo n.º 6
0
Arquivo: update.py Projeto: kmshi/miro
    def __init__(self, url):
        Widget.__init__(self)
        self.set_widget(UpdateAvailableBrowserWidget(url))
        self._widget.set_property('can-focus', True)
        self.url = url

        # TODO: implement net-start and net-stop signaling on windows.
        self.create_signal('net-start')
        self.create_signal('net-stop')
Exemplo n.º 7
0
    def __init__(self):
        Widget.__init__(self)
        self.set_widget(BrowserWidget())
        self.url = None

        # TODO: implement net-start and net-stop signaling on windows.
        self.create_signal('net-start')
        self.create_signal('net-stop')
        self.create_signal('net-error')
        self.create_signal('download-finished')
Exemplo n.º 8
0
    def __init__(self, text, size=0.77, color=WHITE):
        Widget.__init__(self)
        self.set_widget(gtk.EventBox())

        self.label = Label(text)

        self._widget.add(self.label._widget)
        self.label._widget.show()
        self._widget.set_above_child(False)
        self._widget.set_visible_window(False)

        self.set_size(size)
        self.set_color(color)

        self.wrapped_widget_connect('button-release-event', self.on_click)
        self.wrapped_widget_connect('enter-notify-event', self.on_enter_notify)
        self.wrapped_widget_connect('leave-notify-event', self.on_leave_notify)
        self.wrapped_widget_connect('unmap', self.on_unmap)
        self.create_signal('clicked')
Exemplo n.º 9
0
    def __init__(self, text, size=0.77, color=WHITE):
        Widget.__init__(self)
        self.set_widget(gtk.EventBox())

        self.label = Label(text)

        self._widget.add(self.label._widget)
        self.label._widget.show()
        self._widget.set_above_child(False)
        self._widget.set_visible_window(False)

        self.set_size(size)
        self.set_color(color)

        self.wrapped_widget_connect('button-release-event', self.on_click)
        self.wrapped_widget_connect('enter-notify-event', self.on_enter_notify)
        self.wrapped_widget_connect('leave-notify-event', self.on_leave_notify)
        self.wrapped_widget_connect('unmap', self.on_unmap)
        self.create_signal('clicked')