69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
<GeneralLayout>:
|
|
rows : 3
|
|
row_default_height: 25
|
|
canvas:
|
|
Color:
|
|
rgb: [1, 1, 1, 1]
|
|
Rectangle:
|
|
pos:self.pos
|
|
size:self.size
|
|
OptionBar
|
|
ToolBar
|
|
ContentLayout
|
|
|
|
|
|
<OptionBar>:
|
|
spacing:5
|
|
padding: (3,1)
|
|
BoxLayout:
|
|
size: root.width*0.70, root.height
|
|
size_hint: None, None
|
|
Button:
|
|
id: myFileButton
|
|
text: "Open file:"
|
|
on_press: root.setFile(filePath.text)
|
|
TextInput:
|
|
id: filePath
|
|
hint_text: "File path"
|
|
cursor_color: (0,1,0,1)
|
|
multiline: False
|
|
|
|
BoxLayout:
|
|
Button:
|
|
id: myOptionsButton
|
|
text: "Set pixel scale"
|
|
on_press: root.setScale(scaleSize.text)
|
|
TextInput:
|
|
id: scaleSize
|
|
input_type: "number"
|
|
hint_text: "10"
|
|
|
|
<ToolBar>:
|
|
Button:
|
|
id: myMiddleButton
|
|
text: "Next step"
|
|
|
|
|
|
<ContentLayout>:
|
|
rows: 1
|
|
cols: 3
|
|
size_hint_y : 100
|
|
Button:
|
|
size: root.width*0.15, root.height
|
|
size_hint: None, None
|
|
id: myLeftBottomButton
|
|
text: "Left Bottom"
|
|
|
|
ImageCanvas
|
|
|
|
|
|
Button:
|
|
size: root.width*0.15, root.height
|
|
size_hint: None, None
|
|
id: myRightBottmButton
|
|
text: "Right Bottom"
|
|
|
|
|
|
<ImageCanvas>:
|
|
id: imageCanvas
|