is the function you are looking for in the util group. also i think you have to send the name of the function and you have to set defaults for the parameters because they cannot be passed in the call with invokeLater.
[code]#populute the navigation buttons #get the list of windows
windows = system.gui.getWindowNames()
button = 1
#we only have 20 buttons
for path in windows:
if button < 20 and path[:8] == ‘Onelines’: #compare the first 8 chars only
selector = system.gui.getParentWindow(event).getComponent(“Button 1”)
def updateButton(selector=selector, path=path):
selector.ButtonLabel = path[9:] #strip ‘Onelines:’
selector.WindowName = path
selector.visable = 1
system.util.invokeLater(updateButton)
button += 1[/code]