[Skencil-commits] r731 - skencil/branches/skencil-0.6/src/Script
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 22 23:54:21 CEST 2010
Author: igor_n
Date: 2010-09-22 23:54:21 +0200 (Wed, 22 Sep 2010)
New Revision: 731
Modified:
skencil/branches/skencil-0.6/src/Script/average_points.py
skencil/branches/skencil-0.6/src/Script/inspect_beziers.py
skencil/branches/skencil-0.6/src/Script/save_selection.py
Log:
mixed indents are removed
Modified: skencil/branches/skencil-0.6/src/Script/average_points.py
===================================================================
--- skencil/branches/skencil-0.6/src/Script/average_points.py 2010-09-22 21:53:59 UTC (rev 730)
+++ skencil/branches/skencil-0.6/src/Script/average_points.py 2010-09-22 21:54:21 UTC (rev 731)
@@ -34,26 +34,26 @@
self.var_which = IntVar(self.top)
self.var_which.set(AVERAGE_X)
label = Label(self.top, text="Average", anchor=W)
- label.pack(fill=X)
+ label.pack(fill=X)
button = Radiobutton(self.top, text="X Coordinates",
variable=self.var_which, value=AVERAGE_X,
anchor=W)
- button.pack(fill=X)
+ button.pack(fill=X)
button = Radiobutton(self.top, text="Y Coordinates",
variable=self.var_which, value=AVERAGE_Y,
anchor=W)
- button.pack(fill=X)
+ button.pack(fill=X)
button = Radiobutton(self.top, text="Both Coordinates",
variable=self.var_which, value=AVERAGE_BOTH,
anchor=W)
- button.pack(fill=X)
- button = Button(self.top, text="OK", command=self.ok)
- button.pack(side=LEFT)
- button = Button(self.top, text="Cancel", command=self.cancel)
- button.pack(side=RIGHT)
+ button.pack(fill=X)
+ button = Button(self.top, text="OK", command=self.ok)
+ button.pack(side=LEFT)
+ button = Button(self.top, text="Cancel", command=self.cancel)
+ button.pack(side=RIGHT)
def ok(self, *args):
- self.close_dlg(self.var_which.get())
+ self.close_dlg(self.var_which.get())
def average_points(context):
# find a bezier polygon selected
Modified: skencil/branches/skencil-0.6/src/Script/inspect_beziers.py
===================================================================
--- skencil/branches/skencil-0.6/src/Script/inspect_beziers.py 2010-09-22 21:53:59 UTC (rev 730)
+++ skencil/branches/skencil-0.6/src/Script/inspect_beziers.py 2010-09-22 21:54:21 UTC (rev 731)
@@ -33,10 +33,10 @@
self.document = context.document
frame = Frame(self)
frame.pack(side=BOTTOM, fill=X)
- button = Button(frame, text="Update", command=self.update)
- button.pack(side=LEFT)
- button = Button(frame, text="Dismiss", command=self.destroy)
- button.pack(side=RIGHT)
+ button = Button(frame, text="Update", command=self.update)
+ button.pack(side=LEFT)
+ button = Button(frame, text="Dismiss", command=self.destroy)
+ button.pack(side=RIGHT)
sb = Scrollbar(self)
sb.pack(side=RIGHT, fill=Y)
self.text = Text(self, width=85, height=25, yscrollcommand=sb.set)
@@ -65,8 +65,8 @@
controls = ""
elif controls:
controls = " ((%.2f, %.2f), (%.2f, %.2f))" % \
- (controls[0].x, controls[0].y,
- controls[1].x, controls[1].y)
+ (controls[0].x, controls[0].y,
+ controls[1].x, controls[1].y)
else:
controls = " ()"
point = " (%.2f, %.2f) " % (point.x, point.y)
Modified: skencil/branches/skencil-0.6/src/Script/save_selection.py
===================================================================
--- skencil/branches/skencil-0.6/src/Script/save_selection.py 2010-09-22 21:53:59 UTC (rev 730)
+++ skencil/branches/skencil-0.6/src/Script/save_selection.py 2010-09-22 21:54:21 UTC (rev 731)
@@ -55,11 +55,11 @@
filename = get_ps_filename(context)
if filename:
bbox = seldoc.BoundingRect(visible = 0, printable = 1)
- ps_dev = PostScriptDevice(filename, as_eps = 1,
- bounding_box = tuple(bbox),
- document = seldoc)
- seldoc.Draw(ps_dev)
- ps_dev.Close()
+ ps_dev = PostScriptDevice(filename, as_eps = 1,
+ bounding_box = tuple(bbox),
+ document = seldoc)
+ seldoc.Draw(ps_dev)
+ ps_dev.Close()
Sketch.Scripting.AddFunction('save_selection_as_ps', 'Save Selection As EPS',
save_selection_as_ps,
More information about the Skencil-commits
mailing list