diff options
Diffstat (limited to 'src/main/python/utils/data.py')
-rw-r--r-- | src/main/python/utils/data.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/main/python/utils/data.py b/src/main/python/utils/data.py new file mode 100644 index 0000000..d0b5ca1 --- /dev/null +++ b/src/main/python/utils/data.py @@ -0,0 +1,47 @@ +paperSizes = { + "A0": { + "72": [2384, 3370], + "96": [3179, 4494], + "150": [4967, 7022], + "300": [9933, 14043] + }, + "A1": { + "72": [1684, 2384], + "96": [2245, 3179], + "150": [3508, 4967], + "300": [7016, 9933] + }, + "A2": { + "72": [1191, 1684], + "96": [1587, 2245], + "150": [2480, 3508], + "300": [4960, 7016] + }, + "A3": { + "72": [842, 1191], + "96": [1123, 1587], + "150": [1754, 2480], + "300": [3508, 4960] + }, + "A4": { + "72": [595, 842], + "96": [794, 1123], + "150": [1240, 1754], + "300": [2480, 3508] + } +} + +sheetDimensionList = [f'A{i}' for i in range(5)] + +ppiList = ["72", "96", "150", "300"] + +toolbarItems = { + 'Ellipse': { + 'name': 'Ellipse', + 'icon': 'ellipse.png', + 'object': 'QGraphicsEllipseItem', + 'args': [20, 20, 300, 300] + } +} + +defaultToolbarItems = toolbarItems.keys()
\ No newline at end of file |