Greeting,
I am clearly missing something. Please excuse.
But..
I have a simple app that present data via a grid layout with labels.
I have two questions.
1) is there a way to refresh the grid. such that the labels are bound
within the grid block. I have a several labels in a grid and when they
get populated the data from one overflows onto the others. My
expectation was that the grid would adjust and keep the labels
distincly within their grid box. <I know my terminology is off>
<Test>
GridLayout:
rows: 4
cols: 1
Button:
text:
root.info
on_press: root.update()
Label:
valign: 'top'
size_hint: (1,.5)
id: lbl1
text: '1'
font_size: 30
bold: 1
Label:
valign: 'top'
id: lbl2
text: '2'
Label:
valign: 'top'
id: lbl3
text: '3'
class Test(FloatLayout):
lbl1 = ObjectProperty(None)
lbl2 = ObjectProperty(None)
lbl3 = ObjectProperty(None)
def update(self):
self.lbl1.text='blah/nblah/nblah/nbblah/n'
self.lbl2.text='blah/nblah/nblah/nbblah/n'
class TestApp(App):
icon='T.png'
def build(self):
return WhereAreWe()
#Clock.schedule_interval(partial(self.update), 5)
if __name__ == '__main__':
TestApp().run()
2) The other question is how do I call the clock component down in the
app. If I uncomment it it barks about self being undeclared in that
context (kinda of course).
Thanks for the feedback guys.
My expertise is system management and it was fairly easy to use this
toolset to get some stuff done. This is very cool stuff. look forward
to you response.