<RootWidget>
TabbedPanelItem:
text: 'Initialize'
BoxLayout:
orientation:'vertical'
StepSequenceTab:
id: initialize_tab
Button:
size_hint_y: None
height: '50dp'
text: 'Save Protocol'
on_release: root.run_protocol()
class SequenceWidget(BoxLayout):
def __init__(self, **kwargs):
super(SequenceWidget, self).__init__(**kwargs)
layout = GridLayout(id='grid_layout',cols=1,orientation='vertical',size_hint_y=None)
layout.bind(minimum_height=layout.setter('height'))
for row in range(24):
col1 = TypeInput(id='type_input',text='',values=('Pump', 'Pause'))
col2 = PumpInput(id='pump_input',text='',values=('Multi', 'Single','Valve'))
col3 = ValveInput(id='valve_input',text='',values=('0', '1','2','3','4','5'))
col4 = DirectionInput(id='direction_input',text='',values=('Pickup','Dispense'))
col5 = VolumeInput(id='volume_input',text='' ,height=50) #,padding_y=( height - line_height ) / 2.)
col6 = FlowRateInput(id='flowrate_input',text='',height=50) #,padding_y=( height - line_height ) / 2.)
col7 = CmdStrInput(id='cmdstr_input',text='' ,height=50) #,padding_y=( height - line_height ) / 2.,readonly=True)
col8 = ProgressBarOutput(id='progress_input',size_hint_x= 1,value=50)
cols = [col1,col2,col3,col4,col5,col6,col7,col8]
row_layout = BoxLayout(id='cmd_row'+str(row+1),orientation='horizontal',width=1600,height=40,size_hint=(None, None))
for col in cols:
row_layout.add_widget(col)
layout.add_widget(row_layout)
root = ScrollView(id='scroll_view',do_scroll_x=False)
root.add_widget(layout)
self.add_widget(root)
class StepSequenceTab(BoxLayout): def __init__(self, **kwargs):
super(StepSequenceTab, self).__init__(**kwargs)
header = BoxLayout(id='box_layout',size_hint_y=None,height=50,orientation='horizontal') header.add_widget(BubbleButton(id='type_col',text='Type')) header.add_widget(BubbleButton(id='pump_col',text='Pump')) header.add_widget(BubbleButton(id='valve_col',text='Valve #')) header.add_widget(BubbleButton(id='direction_col',text='Direction')) header.add_widget(BubbleButton(id='volume_col',text='Volume (uL)')) header.add_widget(BubbleButton(id='rate_col',text='Rate (uL/hr)')) header.add_widget(BubbleButton(id='string_col',text='String')) header.add_widget(BubbleButton(id='progress_col',text='Progress (%)'))
layout_outer = BoxLayout(id='outer_box_layout',orientation='vertical') wid = SequenceWidget(id='sequence_widget')
layout_outer.add_widget(header) layout.add_widget(wid) self.add_widget(layout_outer)
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/-WlN4c5mCY4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ids = DictProperty({})
'''This is a dictionary of ids defined in your kv language. This will only
be populated if you use ids in your kv language code.