Expression qtwidget.newprint(w,h,printername)
returns a Lua table that
serves as a drawing port descriptor.
Drawing operations will be output to printer printername
.
When argument printername
is omitted,
this function pops a print dialog that allows the user
to choose a printer and specify its settings.
Arguments w
and h
represent the
initial size of the coordinate system.