fix with_pdfrw assignment -- thanks Michał Górny
This commit is contained in:
parent
ceba6a8223
commit
082f999ac8
1 changed files with 5 additions and 2 deletions
|
@ -2450,7 +2450,8 @@ def gui():
|
||||||
)
|
)
|
||||||
|
|
||||||
global with_pdfrw
|
global with_pdfrw
|
||||||
with_pdfrw = (not args["without_pdfrw"].get(),)
|
if with_pdfrw:
|
||||||
|
with_pdfrw = not args["without_pdfrw"].get()
|
||||||
convert(
|
convert(
|
||||||
*infiles,
|
*infiles,
|
||||||
title=args["title"].get() if args["title"].get() else None,
|
title=args["title"].get() if args["title"].get() else None,
|
||||||
|
@ -2589,6 +2590,7 @@ def gui():
|
||||||
variable=args["nodate"],
|
variable=args["nodate"],
|
||||||
state=tkinter.DISABLED,
|
state=tkinter.DISABLED,
|
||||||
).grid(row=1, column=0, columnspan=2, sticky=tkinter.W)
|
).grid(row=1, column=0, columnspan=2, sticky=tkinter.W)
|
||||||
|
# TODO: only have this checkbox enabled if pdfrw is installed
|
||||||
tkinter.Checkbutton(
|
tkinter.Checkbutton(
|
||||||
output_options,
|
output_options,
|
||||||
text="without pdfrw",
|
text="without pdfrw",
|
||||||
|
@ -3432,7 +3434,8 @@ and left/right, respectively. It is not possible to specify asymmetric borders.
|
||||||
exit(2)
|
exit(2)
|
||||||
|
|
||||||
global with_pdfrw
|
global with_pdfrw
|
||||||
with_pdfrw = (not args.without_pdfrw,)
|
if with_pdfrw:
|
||||||
|
with_pdfrw = not args.without_pdfrw
|
||||||
try:
|
try:
|
||||||
convert(
|
convert(
|
||||||
*args.images,
|
*args.images,
|
||||||
|
|
Loading…
Reference in a new issue