I am searching for a way to export a larger vector “image” while using Python-turtle.
I traced the next “method”, which suits me fine, because I can open the Postscript file as a vector in Adobe Illustrator.
This is the code:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2023.4.14
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FIRST
from tkinter import *
from turtle import *
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A3 = 1587.1183
screensize(1720,1320)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MAIN
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ROUND_UP
ts = getscreen()
ts.getcanvas().postscript(file = “first.eps”)
Note that since my screen size (1720x1320) is larger then my laptop-display-screen (1366x768) the python-turtle window opens with two scrollbars, i.e. a part of the drawing is always hidden.
Of course the output, i.e. the .eps resembles the visual part of the drawing as shown on my laptop. Ergo the command “getscreen()” does exactly what it suggests.
Is there a workaround, which will export the complete vector? Possibly by including the tkinter “ScrolledCanvas(master)” command?