[Zope-CVS] CVS: PythonNet/demo - helloform.py:1.3 wordpad.py:1.2

Brian Lloyd cvs-admin at zope.org
Wed Oct 22 22:53:40 EDT 2003


Update of /cvs-repository/PythonNet/demo
In directory cvs.zope.org:/tmp/cvs-serv22945/demo

Modified Files:
	helloform.py wordpad.py 
Log Message:
Lots of fixes to support Python 2.3.2, new sneaky CLR.dll stub to support 
loading the managed runtime into a plain CPython process, prep for b1.


=== PythonNet/demo/helloform.py 1.2 => 1.3 ===
--- PythonNet/demo/helloform.py:1.2	Fri Aug  8 15:49:18 2003
+++ PythonNet/demo/helloform.py	Wed Oct 22 22:53:09 2003
@@ -14,8 +14,10 @@
 
 
 class HelloApp(WinForms.Form):
+    """A simple hello world app that demonstrates the essentials of
+       winforms programming and event-based programming in Python."""
+
     def __init__(self):
-        print 'ran'
         self.Text = "Hello World From Python"
         self.AutoScaleBaseSize = Size(5, 13)
         self.ClientSize = Size(392, 117);
@@ -34,7 +36,7 @@
 
         # Create the text box
         self.textbox = WinForms.TextBox()
-        self.textbox.Text = "Hello Windows Forms World"
+        self.textbox.Text = "Hello World"
         self.textbox.TabIndex = 1
         self.textbox.Size = Size(360, 20)
         self.textbox.Location = Point(16, 24)
@@ -46,7 +48,7 @@
 
     def button_Click(self, sender, args):
         """Button click event handler"""
-        WinForms.MessageBox.Show("button was clicked")
+        WinForms.MessageBox.Show("Please do not press this button again.")
 
     def run(self):
         WinForms.Application.Run(self)


=== PythonNet/demo/wordpad.py 1.1 => 1.2 ===
--- PythonNet/demo/wordpad.py:1.1	Mon Oct 20 23:05:13 2003
+++ PythonNet/demo/wordpad.py	Wed Oct 22 22:53:09 2003
@@ -15,7 +15,7 @@
 
 
 class Wordpad(WinForms.Form):
-    """A simple example application similar to wordpad."""
+    """A simple example winforms application similar to wordpad."""
 
     def __init__(self):
         self.word_wrap = 1
@@ -109,7 +109,6 @@
                  self.menuFileSep_1, self.menuFileExit)
 
         self.fileMenu.MenuItems.AddRange(items)
-
 
 
         # ===================================================================




More information about the Zope-CVS mailing list