Skip to content

Commit

Permalink
recursive infinitate loop with shortcut on TextBox fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
paddywwoof committed Nov 29, 2013
1 parent 5538ade commit 36a31ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def cb(*args):
menu3 = pi3d.Menu(parent_item=mi11, menuitems=[mi111, mi112], horiz=False, position='right')
menu4 = pi3d.Menu(parent_item=mi12, menuitems=[mi121, mi122], horiz=False, position='right')

textbox = pi3d.TextBox(gui, "this is\na textbox\nover lines", 100, 100, callback=cb)
textbox = pi3d.TextBox(gui, "type here", 100, 100, callback=cb, label='TextBox (KEY t to edit)',
shortcut='t')

mx, my = 0, 0
inputs = pi3d.InputEvents()
Expand Down

0 comments on commit 36a31ff

Please sign in to comment.