/[adonthell]/adonthell/test/guitest.py
ViewVC logotype

Diff of /adonthell/test/guitest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by jol, Sat Feb 7 19:45:15 2004 UTC revision 1.8 by ksterker, Sun Oct 9 07:38:40 2005 UTC
# Line 30  def guitest (): Line 30  def guitest ():
30    
31      ## gui stuff      ## gui stuff
32      cont = gui.container ()      cont = gui.container ()
33      cont.setSize (150, 150)      cont.set_size (150, 150)
34      cont.setLocation (20, 30)      cont.set_location (20, 30)
35    
36      a = dict ()      a = dict ()
37      for i in range (0,7):      for i in range (0,7):
38          a[i] = gui.base ()          a[i] = gui.base ()
39          a[i].setSize (40,20)          a[i].set_size (40,20)
40          a[i].setLocation (30, 10)          a[i].set_location (30, 10)
41          cont.addChild (a[i])          cont.add_child (a[i])
42        
43      # set the layout      # set the layout
44      cont.setExtendPolicy (2)      cont.set_extend_policy (2)
45      z = gui.listlayout ()      z = gui.listlayout ()
46      cont.setLayout (z)      cont.set_layout (z)
47    
48            
49      ## Run this loop until letsexit is set to 1 by the      ## Run this loop until letsexit is set to 1 by the

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26