Hello (<-- two spaces)
World
Hello
World
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: |
#!/usr/bin/env python2 | |
from gi.repository import Gtk | |
class Grid(Gtk.Window): | |
widget_list = [] | |
WIDGET_SIZE = 140 | |
COLS = 1 | |
NUM = 100 | |
def calcule_columns(self, scroll, grid): |
Hello (<-- two spaces)
World
Hello
World