Another iteration on the spread out box. Make it work

well also for the mesh.
This commit is contained in:
Marco Pesenti Gritti
2006-10-25 14:31:44 +02:00
parent 15e3a4f791
commit ebb896cb5b
2 changed files with 37 additions and 26 deletions
Regular → Executable
+7 -11
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -14,19 +16,13 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#!/usr/bin/python
import sys
import random
import pygtk
pygtk.require('2.0')
import gobject
from sugar.session.UITestSession import UITestSession
session = UITestSession()
session.start()
import sys
import random
import gtk
import hippo
@@ -39,9 +35,9 @@ def _create_icon():
icon = CanvasIcon(size=100, color=color,
icon_name='stock-buddy')
box.add(icon)
box.add_item(icon)
return (len(box.get_children()) < 15)
return (len(box.get_children()) < 20)
window = gtk.Window()
window.connect("destroy", lambda w: gtk.main_quit())