-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various py3 changes; should all still work on py2.7, too
- Loading branch information
1 parent
3ed52a3
commit cdf38fb
Showing
21 changed files
with
188 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from drawBotDrawingTools import _drawBotDrawingTool | ||
from __future__ import absolute_import | ||
|
||
from .drawBotDrawingTools import _drawBotDrawingTool | ||
|
||
_drawBotDrawingTool._addToNamespace(globals()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,57 @@ | ||
from baseContext import BaseContext | ||
from __future__ import absolute_import, print_function | ||
|
||
from .baseContext import BaseContext | ||
|
||
|
||
class PrintContext(BaseContext): | ||
|
||
fileExtensions = ["*"] | ||
|
||
def _newPage(self, width, height): | ||
print "newPage", width, height | ||
print("newPage", width, height) | ||
|
||
def _save(self): | ||
print "save" | ||
print("save") | ||
|
||
def _restore(self): | ||
print "restore" | ||
print("restore") | ||
|
||
def _blendMode(self, operation): | ||
print "blend mode", operation | ||
print("blend mode", operation) | ||
|
||
def _drawPath(self): | ||
print "drawPath", self._state.path | ||
print("drawPath", self._state.path) | ||
|
||
def _clipPath(self): | ||
print "clipPath", self._state.path | ||
print("clipPath", self._state.path) | ||
|
||
def _transform(self, matrix): | ||
print "transform", matrix | ||
print("transform", matrix) | ||
|
||
def _textBox(self, txt, (x, y, w, h), align): | ||
print "textBox", txt, (x, y, w, h), align | ||
def _textBox(self, txt, xywh, align): | ||
x, y, w, h = xywh | ||
print("textBox", txt, (x, y, w, h), align) | ||
|
||
def _image(self, path, (x, y), alpha, pageNumber): | ||
print "image", path, x, y, alpha, pageNumber | ||
def _image(self, path, xy, alpha, pageNumber): | ||
x, y = xy | ||
print("image", path, x, y, alpha, pageNumber) | ||
|
||
def _frameDuration(self, seconds): | ||
print "frameDuration", seconds | ||
print("frameDuration", seconds) | ||
|
||
def _reset(self, other=None): | ||
print "reset", other | ||
print("reset", other) | ||
|
||
def _saveImage(self, path, multipage): | ||
print "saveImage", path, multipage | ||
print("saveImage", path, multipage) | ||
|
||
def _printImage(self, pdf=None): | ||
print "printImage", pdf | ||
print("printImage", pdf) | ||
|
||
def _linkDestination(self, name, (x, y)): | ||
print "linkDestination", name, (x, y) | ||
def _linkDestination(self, name, xy): | ||
x, y = xy | ||
print("linkDestination", name, (x, y)) | ||
|
||
def _linkRect(self, name, (x, y, w, h)): | ||
print "linkRect", name, (x, y, w, h) | ||
def _linkRect(self, name, xywh): | ||
x, y, w, h = xywh | ||
print("linkRect", name, (x, y, w, h)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.