Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 16th, 2010 | Syntax: Python | Size: 0.67 KB | Hits: 48 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1.     def on_txtaskmasterpassword_changed(self, widget, data=None):
  2.         """
  3.        Function called when you write or remove characters on master password entry
  4.        """
  5.         print self.all_vms[vm]['name_label'
  6.         # If you check "save server passwords" then you need specify a master password
  7.         # If len of master password is 0, then disable "Accept" button in options dialog
  8.         self.builder.get_object("acceptmasterpassword").set_sensitive(len(widget.get_text()))
  9.  
  10. $ python2.6 ./window.py
  11.   File "./window.py", line 744
  12.     self.builder.get_object("acceptmasterpassword").set_sensitive(len(widget.get_text()))
  13.        ^
  14. SyntaxError: invalid syntax