Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
bc590d5e
Commit
bc590d5e
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
started with the ADU Interface
parent
58300044
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hp4155/ADU/Untitled.ipynb
+6
-0
6 additions, 0 deletions
hp4155/ADU/Untitled.ipynb
hp4155/ADU/interface.py
+40
-0
40 additions, 0 deletions
hp4155/ADU/interface.py
with
46 additions
and
0 deletions
hp4155/ADU/Untitled.ipynb
0 → 100644
+
6
−
0
View file @
bc590d5e
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
This diff is collapsed.
Click to expand it.
hp4155/ADU/interface.py
0 → 100644
+
40
−
0
View file @
bc590d5e
import
ipywidgets
as
widgets
from
ipywidgets
import
GridspecLayout
,
Layout
# Create the grids
def
interface
():
#some layout and sampling configurations
style
=
{
'
description_width
'
:
'
initial
'
}
sample_information
=
widgets
.
Label
(
"
Sample Information
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
information_grid
=
GridspecLayout
(
2
,
4
)
#first and third column
#first column
information_grid
[
0
,
0
]
=
widgets
.
Label
(
"
Processing-Nr.
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
information_grid
[
1
,
0
]
=
widgets
.
Label
(
"
Sample-Nr.
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
#information_grid[2,0]=widgets.Label("Piece",layout=Layout(height='auto', width='auto'))
#last column
information_grid
[
0
,
3
]
=
widgets
.
Label
(
"
Field(XYY)
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
information_grid
[
1
,
3
]
=
widgets
.
Label
(
"
Transistor
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
#information_grid[2,3]=widgets.Label("Testlevel",layout=Layout(height='auto', width='auto'))
#coluns 2 and 3
for
i
in
range
(
2
):
for
j
in
range
(
1
,
3
):
information_grid
[
i
,
j
]
=
widgets
.
Text
(
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
display
(
sample_information
)
display
(
information_grid
)
print
()
test_contacts
=
widgets
.
Checkbox
(
description
=
"
Test of the Contacts
"
,
value
=
True
,
indent
=
False
)
display
(
test_contacts
)
print
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment