2011-10-31 19:56:13 +01:00
|
|
|
from gi.repository import Gtk
|
2013-04-03 22:01:15 +02:00
|
|
|
from sugar3.graphics.alert import TimeoutAlert
|
2017-01-11 18:23:08 +01:00
|
|
|
from common import set_theme
|
|
|
|
set_theme()
|
2011-10-31 19:56:13 +01:00
|
|
|
|
2013-05-18 04:48:47 +02:00
|
|
|
|
2011-10-31 19:56:13 +01:00
|
|
|
def __start_response_cb(widget, data=None):
|
|
|
|
print 'Response: start download'
|
|
|
|
|
2017-01-05 01:02:26 +01:00
|
|
|
|
2011-10-31 19:56:13 +01:00
|
|
|
w = Gtk.Window()
|
2017-01-11 18:23:08 +01:00
|
|
|
w.connect("delete-event", Gtk.main_quit)
|
2011-10-31 19:56:13 +01:00
|
|
|
|
2017-01-11 18:23:08 +01:00
|
|
|
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
2011-10-31 19:56:13 +01:00
|
|
|
w.add(box)
|
|
|
|
|
|
|
|
alert = TimeoutAlert(9)
|
|
|
|
alert.props.title = 'Download started'
|
|
|
|
alert.props.msg = 'Sugar'
|
|
|
|
box.pack_start(alert, False, False, 0)
|
|
|
|
alert.connect('response', __start_response_cb)
|
|
|
|
|
|
|
|
w.show_all()
|
|
|
|
|
|
|
|
Gtk.main()
|