Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'pygtk'

925826 - PyGTK Tab-completion: python pygtk tab-completion completion
  1. #!/usr/bin/env python
  2.  
  3. import time
  4. import pygtk
  5. pygtk.require('2.0')
  6. import gtk
  7.  
  8. KEY_TAB = 65289
  9.  
854087 - cody-somerville: python pygtk glade
  1. #!/usr/bin/env python
  2. #
  3. # Reddit View V0.01
  4. # Author: Cody A.W. Somerville <cody-somerville@ubuntu.com>
  5. # Copyright (C) 2008 Cody A.W. Somerville
  6. # Released under the Open Source BSD Revised license
  7. #
  8.  
  9.  
835986 - Pygtk entry validation: input pygtk entry validation
  1. import gobject
  2.  
  3. def CharsOnly(entry, new_text, new_text_length, position):
  4.     canAdd=''
  5.     pos=entry.get_position()
  6.     for newChar in new_text:
  7.         if (newChar.isalpha() or newChar == '.' or newChar == '-' or newChar ==' '):
  8.            canAdd+=newChar
  9.  
worth-right