Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 16th, 2010 | Syntax: Python | Size: 0.48 KB | Hits: 44 | 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()))