-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.py
More file actions
38 lines (28 loc) · 1.23 KB
/
Config.py
File metadata and controls
38 lines (28 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from configparser import ConfigParser
config = ConfigParser()
config.read('config.ini')
config.remove_section('settings')
config.add_section('settings')
#set default settings below
#if any new settings added, add the same in ScreenMarkerPro.py file during load settings and save_settings() function
config.set('settings', 'pen_size', '5' )
config.set('settings', 'highlighter_size', '20')
config.set('settings', 'highlighter_transparency', '0.5')
config.set('settings', 'eraser_size', '10')
config.set('settings', 'pointer_size', '20')
config.set('settings', 'text_size', 'Red')
config.set('settings', 'board_width', '600')
config.set('settings', 'board_height', '600')
config.set('settings', 'pen_color', 'Blue')
config.set('settings', 'highlighter_color', 'Yellow')
config.set('settings', 'board_color', 'White')
config.set('settings', 'pointer_color', 'Red')
config.set('settings', 'shape_color', 'Red')
config.set('settings', 'text_color', 'Red')
config.set('settings', 'toolbox_visible', 'False')
config.set('settings', 'toolbox_verticle', 'True')
config.set('settings', 'shape_fill', 'False')
config.set('settings', 'fullscreen_board', 'True')
config.set('settings', 'pointer_enable', 'False')
with open('config.ini', 'w') as f:
config.write(f)