1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import sys, os
import gtk
class TutorialStoreSearch:
def __init__(self):
search_label = gtk.Label('Search :')
search_box = gtk.Entry(400)
in_label = gtk.Label('in')
search_combobox = gtk.combo_box_new_text()
search_combobox.insert_text(0, 'all Categories (109)')
search_combobox.insert_text(1, 'Math (8)')
search_combobox.insert_text(2, 'Physics (16)')
search_combobox.insert_text(3, 'History (32)')
search_combobox.insert_text(4, 'Learning (53)')
self.search_button = gtk.Button('Search')
self.tutorial_store_search = gtk.HBox(False, 5)
self.tutorial_store_search.pack_start(search_label, True, True, 5)
self.tutorial_store_search.pack_start(search_box, True, True, 5)
self.tutorial_store_search.pack_start(in_label, True, True, 5)
self.tutorial_store_search.pack_start(search_combobox, True, True, 5)
self.tutorial_store_search.pack_start(self.search_button, True, True, 5)
search_label.show()
search_box.show()
in_label.show()
search_combobox.show()
self.search_button.show()
self.tutorial_store_search.show()
def search_button_access(self):
return self.search_button
|