CVS: anygui/test test_modv1.py,1.4,1.5 test_modv2.py,1.5,1.6 test_modv3.py,1.4,1.5

"Dallas T. Johnston" <[email protected]> Mon, 23 Sep 2002 12:42:30 -0700
Newsgroups gmane.comp.python.anygui.cvs
Message-ID <[email protected]>
Update of /cvsroot/anygui/anygui/test
In directory usw-pr-cvs1:/tmp/cvs-serv4401

Modified Files:
	test_modv1.py test_modv2.py test_modv3.py 
Log Message:
Now uses the new Models...
changed widget.prop = Model() to widget.installPropModel(Model())


Index: test_modv1.py
===================================================================
RCS file: /cvsroot/anygui/anygui/test/test_modv1.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_modv1.py	12 Mar 2002 02:09:35 -0000	1.4
--- test_modv1.py	23 Sep 2002 19:42:25 -0000	1.5
***************
*** 15,19 ****
      if newbtn is None:
          newbtn = Button(opt, y = g_y)
!         newbtn.text = TextModel('new')
          win.add(newbtn)
      else:
--- 15,19 ----
      if newbtn is None:
          newbtn = Button(opt, y = g_y)
!         newbtn.installTextModel(TextModel('new'))
          win.add(newbtn)
      else:

Index: test_modv2.py
===================================================================
RCS file: /cvsroot/anygui/anygui/test/test_modv2.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_modv2.py	12 Mar 2002 02:09:35 -0000	1.5
--- test_modv2.py	23 Sep 2002 19:42:25 -0000	1.6
***************
*** 11,19 ****
  
  def printit1(event):
-     return
      log('printit1:',newbtn.text)
  
  def printit2(event):
-     return
      log('printit2:',newbtn.text)
  
--- 11,17 ----
***************
*** 23,27 ****
      if newbtn is None:
          newbtn = TextField(opt, y = g_y)
!         newbtn.text = TextModel('new')
          link(newbtn, printit1)
          link(newbtn.text, printit2)
--- 21,25 ----
      if newbtn is None:
          newbtn = TextField(opt, y = g_y)
!         newbtn.installTextModel(TextModel('new'))
          link(newbtn, printit1)
          link(newbtn.text, printit2)

Index: test_modv3.py
===================================================================
RCS file: /cvsroot/anygui/anygui/test/test_modv3.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_modv3.py	12 Mar 2002 02:09:35 -0000	1.4
--- test_modv3.py	23 Sep 2002 19:42:26 -0000	1.5
***************
*** 11,18 ****
  
  def printit1(event):
!     log('printit1:',newbtn.on,ignore_kwds)
  
  def printit2(event):
!     log('printit2:',newbtn.on,ignore_kwds)
  
  def say_hello(event):
--- 11,18 ----
  
  def printit1(event):
!     log('printit1:',newbtn.on)
  
  def printit2(event):
!     log('printit2:',newbtn.on)
  
  def say_hello(event):
***************
*** 21,25 ****
      if newbtn is None:
          newbtn = CheckBox(opt, y = g_y)
!         newbtn.on = BooleanModel()
          link(newbtn, printit1)
          link(newbtn.on, printit2)
--- 21,25 ----
      if newbtn is None:
          newbtn = CheckBox(opt, y = g_y)
!         newbtn.installOnModel(BooleanModel())
          link(newbtn, printit1)
          link(newbtn.on, printit2)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf