FlowPanel is not returning its children. Given its wide use I was a little
surprised which is why I wanted to run it by the community before I start
poking at it. The code below illustrates the problem clearly. Only the
first child is returned. I look forward to your feedback. I am using
version 0.8.1a.
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Label import Label
from pyjamas.ui.FlowPanel import FlowPanel
from pyjamas import logging
if __name__ == '__main__':
log = logging.getConsoleLogger('RootPanel')
flowPanel = FlowPanel()
flowPanel.add(Label('item 1'))
flowPanel.add(Label('item 2'))
flowPanel.add(Label('item 3'))
log.debug('start of flowpanel')
for child in flowPanel.getChildren():
log.debug(' child is %s'%child)
RootPanel().add(flowPanel)
*OUTPUT*
DEBUG:RootPanel:start of flowpanel
index....he.html (line 38238)
DEBUG:RootPanel: child is instance of pyjamas.ui.Label.Label
3
index....he.html (line 38238)
--
---
You received this message because you are subscribed to the Google Groups
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.