Skip to content

Instantly share code, notes, and snippets.

View Furao's full-sized avatar

Robbie VanVossen Furao

  • DornerWorks
  • Grand Rapids, MI
View GitHub Profile
@Furao
Furao / combo.py
Created September 1, 2011 21:35
Prevent a Combobox from scrolling in PyGTK
def combo_scrolling(combobox, event):
"""Prevent the comboboxes from scrolling."""
combobox.emit_stop_by_name("scroll-event")
values = ['item 1', 'item 2', 'item 3']
combo = gtk.combo_box_new_text()
# Fill with part type options
for val in values: