pep8'd examples

This commit is contained in:
William Orr 2013-05-17 22:48:47 -04:00 committed by Daniel Narvaez
parent c736ffefcd
commit 30acc63d51
9 changed files with 33 additions and 23 deletions

View File

@ -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'

View File

@ -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()

View File

@ -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'

View File

@ -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)

View File

@ -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'

View File

@ -2,6 +2,7 @@ from gi.repository import Gtk
from sugar3.graphics.notebook import Notebook
def _destroy_cb(widget, data=None):
Gtk.main_quit()