File size: 697 Bytes
0c536cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
import os


def root_directory():
    if getattr(sys, 'frozen', False):
        # The application is frozen
        root = os.path.dirname(sys.executable)
    else:
        # The application is not frozen
        root = os.path.dirname(__file__)  # os.path.dirname(os.path.abspath(__file__))#os.path.dirname(__file__)
    return (root)


ROOT_DIR = root_directory()

LEFT_PANE_WIDTH = 90
RIGHT_PANE_WIDTH = 100 - LEFT_PANE_WIDTH
GRAPH_PANE_HEIGHT = 100
HEADER_HEIGHT = 11
CONTENT_HEIGHT = 100 - HEADER_HEIGHT

EXPORT_FORMAT = 'png' #one of png, svg, jpeg, webp
EXPORT_SCALE = 1.0 #When 1.0, the figure is exported as same size as currently in the browser. Use e.g. 0.5 to scale to half.