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