Run PyGtk with grun


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. all of these work so I can use them to interact
  2. from grun import grun
  3.  
  4. print grun("Do you want to continue ?")
  5.  
  6. def working():
  7. yield 0.0
  8. yield 0.4
  9. yield 0.8
  10. yield 1.0
  11.  
  12. grun( working() )
  13.  
  14. @grun
  15. def ask_login(login, passwd_password):
  16. """ Just enter your login and password """
  17. return login, passwd_password
  18.  
  19. print ask_login(login="marc")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.