~bennabiy/+junk/python-xlib

« back to all changes in this revision

Viewing changes to debian/patches/fix-rhomboid-examples

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura, Ramkumar Ramachandra, Andrew Shadura
  • Date: 2015-08-13 08:14:19 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20150813081419-hdefinnghp2iydkx
Tags: 0.14+20091101-3
[ Ramkumar Ramachandra ]
* Remove useless debugging output (Closes: #565996)

[ Andrew Shadura ]
* Switch to 3.0 (quilt) format.
* Rename patches.
* Use debhelper 9 in its short form.
* Use pybuild.
* Bump Standards-Version.
* Don't build or install PostScript documentation and info files.
* Use system-provided texi2html instead of a shipped version
  (Closes: #795057).
* Update debian/copyright (Closes: #795057).
* Don't install Makefile or texi2html with the documentation.
* Set executable bit for examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: trunk/examples/draw.py
2
 
===================================================================
3
 
--- trunk.orig/examples/draw.py 2009-04-11 19:18:15.000000000 -0400
4
 
+++ trunk/examples/draw.py      2009-11-05 06:06:25.000000000 -0500
5
 
@@ -115,7 +115,7 @@
6
 
                         sys.exit(0)
7
 
 
8
 
 # A drawed objects, consisting of either a single
9
 
-# romboid, or two romboids connected by a winding line
10
 
+# rhomboid, or two rhomboids connected by a winding line
11
 
 
12
 
 class Movement:
13
 
     def __init__(self, win, ev):
14
 
@@ -129,7 +129,7 @@
15
 
         self.time = ev.time
16
 
         self.lines = [(ev.event_x, ev.event_y)]
17
 
 
18
 
-        self.first = Romboid(self.win, ev)
19
 
+        self.first = Rhomboid(self.win, ev)
20
 
         self.last = None
21
 
 
22
 
     def motion(self, ev):
23
 
@@ -182,7 +182,7 @@
24
 
     def finish(self, ev):
25
 
         self.motion(ev)
26
 
         if len(self.lines) > 1:
27
 
-            self.last = Romboid(self.win, ev)
28
 
+            self.last = Rhomboid(self.win, ev)
29
 
 
30
 
             self.left = min(ev.event_x - 5, self.left)
31
 
             self.right = max(ev.event_x + 5, self.right)
32
 
@@ -204,8 +204,8 @@
33
 
                 self.last.draw()
34
 
 
35
 
 
36
 
-# A romboid, drawed around the Movement endpoints
37
 
-class Romboid:
38
 
+# A rhomboid, drawed around the Movement endpoints
39
 
+class Rhomboid:
40
 
     def __init__(self, win, ev):
41
 
         self.win = win
42
 
         self.x = ev.event_x
43
 
@@ -213,7 +213,7 @@
44
 
         self.draw()
45
 
 
46
 
     def draw(self):
47
 
-        # Draw the segments of the romboid
48
 
+        # Draw the segments of the rhomboid
49
 
         self.win.window.poly_line(self.win.gc, X.CoordModePrevious,
50
 
                                   [(self.x, self.y - 5),
51
 
                                    (5, 5),
52
 
Index: trunk/examples/draw-proto.py
53
 
===================================================================
54
 
--- trunk.orig/examples/draw-proto.py   2009-04-11 19:18:15.000000000 -0400
55
 
+++ trunk/examples/draw-proto.py        2009-11-05 06:06:25.000000000 -0500
56
 
@@ -104,7 +104,7 @@
57
 
                 current.motion(e)
58
 
 
59
 
 # A drawed objects, consisting of either a single
60
 
-# romboid, or two romboids connected by a winding line
61
 
+# rhomboid, or two rhomboids connected by a winding line
62
 
 
63
 
 class Movement:
64
 
     def __init__(self, win, ev):
65
 
@@ -118,7 +118,7 @@
66
 
         self.time = ev.time
67
 
         self.lines = [(ev.event_x, ev.event_y)]
68
 
 
69
 
-        self.first = Romboid(self.win, ev)
70
 
+        self.first = Rhomboid(self.win, ev)
71
 
         self.last = None
72
 
 
73
 
     def motion(self, ev):
74
 
@@ -179,7 +179,7 @@
75
 
     def finish(self, ev):
76
 
         self.motion(ev)
77
 
         if len(self.lines) > 1:
78
 
-            self.last = Romboid(self.win, ev)
79
 
+            self.last = Rhomboid(self.win, ev)
80
 
 
81
 
             self.left = min(ev.event_x - 5, self.left)
82
 
             self.right = max(ev.event_x + 5, self.right)
83
 
@@ -203,8 +203,8 @@
84
 
                 self.last.draw()
85
 
 
86
 
 
87
 
-# A romboid, drawed around the Movement endpoints
88
 
-class Romboid:
89
 
+# A rhomboid, drawed around the Movement endpoints
90
 
+class Rhomboid:
91
 
     def __init__(self, win, ev):
92
 
         self.win = win
93
 
         self.x = ev.event_x
94
 
@@ -212,7 +212,7 @@
95
 
         self.draw()
96
 
 
97
 
     def draw(self):
98
 
-        # Draw the segments of the romboid
99
 
+        # Draw the segments of the rhomboid
100
 
         PolyLine(self.win.d, None,
101
 
                  X.CoordModePrevious,
102
 
                  self.win.window,