blob: 8926abef1311fc43a87b0eae5bb990e1029d0f4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from gi.repository import Gtk
from sugar3.graphics.alert import TimeoutAlert
def _destroy_cb(widget, data=None):
Gtk.main_quit()
def __start_response_cb(widget, data=None):
print 'Response: start download'
w = Gtk.Window()
w.connect("destroy", _destroy_cb)
box = Gtk.VBox()
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()
|