forked from josch/plakativ
add dummy tkinter class
This commit is contained in:
parent
988e844c9e
commit
1e0bde7027
1 changed files with 13 additions and 3 deletions
12
plakativ.py
12
plakativ.py
|
@ -4,8 +4,18 @@
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import math
|
import math
|
||||||
import fitz
|
import fitz
|
||||||
|
try:
|
||||||
import tkinter
|
import tkinter
|
||||||
import tkinter.filedialog
|
import tkinter.filedialog
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
# dummy classes so that this also loads without tkinter
|
||||||
|
class tkinter:
|
||||||
|
class Frame:
|
||||||
|
pass
|
||||||
|
class Menubutton:
|
||||||
|
pass
|
||||||
|
class LabelFrame:
|
||||||
|
pass
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -1058,7 +1068,7 @@ def main():
|
||||||
gui()
|
gui()
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
compute_layout(args.input, args.output)
|
compute_layout(args.input, args.output, mode="size", size=(297, 420))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue