pep8'd examples
This commit is contained in:
parent
c736ffefcd
commit
30acc63d51
@ -2,9 +2,11 @@ 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'
|
||||
|
||||
|
@ -21,6 +21,7 @@ class _Animation(animator.Animation):
|
||||
def __animation_completed_cb(anim):
|
||||
print 'Animation completed'
|
||||
|
||||
|
||||
def _destroy_cb(widget, data=None):
|
||||
Gtk.main_quit()
|
||||
|
||||
|
@ -2,9 +2,11 @@ from gi.repository import Gtk
|
||||
|
||||
from sugar3.graphics.combobox import ComboBox
|
||||
|
||||
|
||||
def _destroy_cb(widget, data=None):
|
||||
Gtk.main_quit()
|
||||
|
||||
|
||||
def __combo_changed_cb(widget, data=None):
|
||||
print 'combo-changed'
|
||||
|
||||
|
@ -33,6 +33,7 @@ def set_theme():
|
||||
settings.set_property('gtk-icon-theme-name', 'sugar')
|
||||
set_theme()
|
||||
|
||||
|
||||
class Test(Gtk.VBox):
|
||||
def __init__(self):
|
||||
GObject.GObject.__init__(self)
|
||||
|
@ -2,12 +2,15 @@ from gi.repository import Gtk
|
||||
|
||||
from sugar3.graphics import iconentry
|
||||
|
||||
|
||||
def _destroy_cb(widget, data=None):
|
||||
Gtk.main_quit()
|
||||
|
||||
|
||||
def __go_next_cb(entry, icon_pos, data=None):
|
||||
print 'Go next'
|
||||
|
||||
|
||||
def __entry_activate_cb(widget, data=None):
|
||||
print 'Entry activate'
|
||||
|
||||
|
@ -2,6 +2,7 @@ from gi.repository import Gtk
|
||||
|
||||
from sugar3.graphics.notebook import Notebook
|
||||
|
||||
|
||||
def _destroy_cb(widget, data=None):
|
||||
Gtk.main_quit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user