-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
uiParameters.py
35 lines (28 loc) · 1.62 KB
/
uiParameters.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
from ui import *
# UI
panel = Panel(position = (Width-350, 80), w= 335, h= 600, color=(0, 0, 0), alpha=128)
runButton = Button("Run")
connections = TextUI("Parameters", (Width-180, 120), (255, 255, 255))
showuiText = TextUI("Press 'U' to access the parameters ", (Width-280, 120), (255, 255, 255), "center")
showuiText.fontSize = 23
connections.fontSize = 25
verticalText = TextUI("Vertical: ", (Width-245, 180), (255, 255, 255))
horizontalText = TextUI("Horizontal: ", (Width-245, 220), (255, 255, 255))
diagonal1Text = TextUI("Diagonal-1: ", (Width-245, 260), (255, 255, 255))
diagonal2Text = TextUI("Diagonal-2: ", (Width-245, 300), (255, 255, 255))
showpointText = TextUI("show Point: ", (Width-245, 350), (255, 255, 255))
rowsText = TextUI("Cols: ",(Width-280, 440),(255, 255, 255))
colsText = TextUI("Rows: ",(Width-140, 440),(255, 255, 255) )
radiusText = TextUI("point-radius: ",(Width-240, 500),(255, 255, 255))
thicknessText = TextUI("line-thickness: ",(Width-240, 530),(255, 255, 255) )
spacingText = TextUI("point-spacing: ",(Width-240, 560),(255, 255, 255) )
toggleVertical = ToggleButton((Width-160, 170), 20, 20, True)
toggleHorizontal = ToggleButton((Width-160, 210), 20, 20, True)
toggleDiagonal1 = ToggleButton((Width-160, 250), 20, 20, False)
toggleDiagonal2 = ToggleButton((Width-160, 290), 20, 20, False)
showPoint = ToggleButton((Width-160, 340), 20, 20, True)
rowsInput = DigitInput(20, (Width-250, 420), 80, 40)
colsInput = DigitInput(10, (Width-110, 420), 80, 40)
radiusInput = DigitInput(3, (Width-160, 480), 80, 30)
thicknessInput = DigitInput(3, (Width-160, 515), 80, 30)
spacingInput = DigitInput(20, (Width-160, 550), 80, 30)