Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(9)  |  Derive(0)  |  Import(1)
This class combines a listbox with a scrollbar.

src/c/h/chessproblem.ui-0.3.3/chessproblem/ui/info.py   chessproblem.ui(Download)
from chessproblem.model import Author
 
from common import ScrollableListbox
from common import SearchEntry
from common import ListEditDialog
        self.search_entry = SearchEntry(search_frame, self.search_authors)
        self.search_entry.grid(row=0, column=1)
        self.author_listbox = ScrollableListbox(search_frame, width=30)
        self.author_listbox.grid(row=1, column=0, rowspan=3, columnspan=2, pady=5, sticky=tk.E+tk.W)
        self.author_listbox.selection_change_listeners.append(self._on_selection_change)
        self.searchentry = SearchEntry(master, self.search)
        self.searchentry.grid(row=0, column=1)
        self.authorsearchbox = ScrollableListbox(master)
        self.authorsearchbox.grid(row=1, column=0, columnspan=2, pady=4, sticky=tk.E+tk.W)
        self.search('')
        self.new_author_button = tk.Button(master, text='new', command=self._new_author)
        self.new_author_button.grid(row=0, column=4, padx=4, sticky=tk.E+tk.W)
        self.authorlistbox = ScrollableListbox(master)
        self.authorlistbox.set_objects(self.problem.authors)
        self.authorlistbox.grid(row=1, column=3, columnspan=2, pady=4, sticky=tk.E+tk.W)
        self.list_label = tk.Label(master, text='Already known authors (exact match)')
        self.list_label.grid(row=0, column=0)
        self.author_listbox = ScrollableListbox(master, selectmode=tk.EXTENDED)
        self.author_listbox.grid(row=1, column=0)
        self.author_listbox.set_objects(self.db_service.known_import_authors())