Skip to content
Snippets Groups Projects
Commit 7c6a3900 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

playing with the interface

parent c8742b4c
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0d67fe3bdaac4000a5e38a957e5696d7",
"model_id": "a58e94495b5249539c2a5bccc0f4ff51",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Label(value='Sample Information', layout=Layout(height='auto', width='auto'), style=LabelStyle(font_weight='bo…"
"Label(value='Sample Information', layout=Layout(height='auto', width='50%'), style=LabelStyle(font_weight='bol…"
]
},
"metadata": {},
......@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "59791888b4d04d4494b5fa940e5555f6",
"model_id": "a59cc4461bde44708f8be132f5943963",
"version_major": 2,
"version_minor": 0
},
......@@ -44,7 +44,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fc3ec758e3e649c8b7efce8e0360f2c5",
"model_id": "1b7b93c627d34a47bc64c257476418c9",
"version_major": 2,
"version_minor": 0
},
......@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ff9aedf0b124458caa99ca30bceda374",
"model_id": "06928453444a493f918b37adb8381a72",
"version_major": 2,
"version_minor": 0
},
......@@ -86,7 +86,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "61105c6a020042638cb0d7dfaa50eae6",
"model_id": "48f5b3b2cde34e8e95e9756c5497a129",
"version_major": 2,
"version_minor": 0
},
......@@ -107,7 +107,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "178d2e85b8354c0d89cb097e12c7ef6f",
"model_id": "a8ffa4d37584404ebca09686e3f87960",
"version_major": 2,
"version_minor": 0
},
......@@ -130,7 +130,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "11c21048d50f4c15bde11a87fea5355a",
"model_id": "075200f0c220494bb8608b42ac3259a3",
"version_major": 2,
"version_minor": 0
},
......@@ -151,7 +151,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9bb79518da1b42cd85f33e80f7ce129d",
"model_id": "78eabd8865794497afe4b3821cb952e7",
"version_major": 2,
"version_minor": 0
},
......@@ -172,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "97ed121b69504810ac0dd70a1c1d42ac",
"model_id": "e0332e08a4934b45a9a3cb9f1e0fb83c",
"version_major": 2,
"version_minor": 0
},
......@@ -195,7 +195,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c1528d2c0e3747eea404311447d65856",
"model_id": "1334ee544cb04eb1809d3ad940cc8470",
"version_major": 2,
"version_minor": 0
},
......@@ -216,7 +216,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "30598dcd2bd34b069c48260cdae82a8f",
"model_id": "af552ca7444f4aa6b95045732742ef1f",
"version_major": 2,
"version_minor": 0
},
......@@ -239,7 +239,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d44607146b6e48548ba4ed4e20e7b115",
"model_id": "b0a9bd2f4c294f00b7b5e9147db13042",
"version_major": 2,
"version_minor": 0
},
......@@ -253,7 +253,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "724045fe8ed94a2e853026625c619be7",
"model_id": "fc186725aa384a93be294e54f4c0dd93",
"version_major": 2,
"version_minor": 0
},
......
......@@ -3,6 +3,7 @@ from ipywidgets import GridspecLayout,Layout
from IPython.display import clear_output
import sys
width = "90%"
def header(name):
header_grid = GridspecLayout(1,3)
......@@ -94,35 +95,35 @@ def secondary(name,start,step,stop,comp):
return parameters
def information_grid():
sample_information=widgets.Label("Sample Information",layout=Layout(height='auto', width='auto'))
sample_information=widgets.Label("Sample Information",layout=Layout(height='auto', width='50%'))
sample_information.style.font_weight='bold'
information_grid=GridspecLayout(3,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",layout=Layout(height='auto', width='auto'))
information_grid[0,0]=widgets.Label("Processing-Nr.",layout=Layout(height='auto', width=width))
information_grid[1,0]=widgets.Label("Sample",layout=Layout(height='auto', width=width))
#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("Device",layout=Layout(height='auto', width='auto'))
information_grid[0,3]=widgets.Label("Field(XYY)",layout=Layout(height='auto', width=width))
information_grid[1,3]=widgets.Label("Device",layout=Layout(height='auto', width=width))
#information_grid[2,3]=widgets.Label("Testlevel",layout=Layout(height='auto', width='auto'))
#columns 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'))
information_grid[i,j]=widgets.Text(layout=Layout(height='auto', width=width))
# last line with normalization
information_grid[2,0] = widgets.Label("Device Width(µm)",layout=Layout(height='auto', width='auto'))
information_grid[2,3] = widgets.Label("Normalization",layout=Layout(height='auto', width='auto'))
information_grid[2,0] = widgets.Label("Device Width(µm)",layout=Layout(height='auto', width=width))
information_grid[2,3] = widgets.Label("Normalization",layout=Layout(height='auto', width=width))
information_grid[2,1] = widgets.BoundedFloatText(value=100,min=sys.float_info.min,max=sys.float_info.max,step=1,layout=Layout(height='auto', width='auto'))
information_grid[2,2] = widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height='auto', width='auto'))#mind the gap
information_grid[2,1] = widgets.BoundedFloatText(value=100,min=sys.float_info.min,max=sys.float_info.max,step=1,layout=Layout(height='auto', width=width))
information_grid[2,2] = widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height='auto', width=width))#mind the gap
display(sample_information)
display(information_grid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment