-
Notifications
You must be signed in to change notification settings - Fork 1
/
paramaters_a.py
48 lines (27 loc) · 1.51 KB
/
paramaters_a.py
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
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
# to have this file active in your SmartTerminal:
# command line might look like this: # python smart_terminal.py parameters=paramaters_a
class ParmetersXx( object ):
"""
this is an object which extends the setting in the normal parameter file
it is called after the parameter file is run.
"""
def __init__(self, ):
pass
def modify( self, parameters ):
"""
in the parameter file we use self.xxx = .... here it is parameters.xxx = .....
"""
print( "modifying parameters in paramaters_a" )
parameters.port = "COM3" # /dev/ttyUSB0 on GNU/Linux or COM3 on Windows. Device name or port number number or None.
#self.port = "/dev/ttyUSB0"
#self.port = "/dev/ttyUSB1"
#parameters.port = "COM15"
#parameters.port = "COM99"
parameters.icon = r"D:\Temp\ico_from_windows\terminal_red.ico" # blue red green yellow
parameters.id_color = "blue" #
# parameters.win_geometry = '1500x800+20+20' # width x height position
parameters.id_color = "blue"
parameters.win_geometry = '800x800+20+20' # width x height position
self.send_strs = [ "r", "p0", "n", "g400", "d-", "d+", "t2", "t8", "t16", "", "a5", "a10", "a20", "" ]
# ================= eof ===============