All pastes #797669 Raw Edit

Anonymous

public python v1 · immutable
#797669 ·published 2007-11-26 04:23 UTC
rendered paste body
#!/usr/bin/env pythonimport gntwin = gnt.Window()entry = gnt.Entry("test")win.add_widget(entry)button = gnt.Button("Click")win.add_widget(button)def move_focus(b):    win.give_focus_to_child(entry)button.connect('activate', move_focus)win.show()gnt.gnt_main()gnt.gnt_quit()