Changeset 23 for conseil.py
- Timestamp:
- 07/08/06 12:06:18 (3 years ago)
- Files:
-
- 1 modified
-
conseil.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
conseil.py
r20 r23 3 3 import sys 4 4 import string 5 #subfolders are added to the path 6 sys.path[1:1]=["storage", "protocols"] 5 7 try: 6 8 import pygtk … … 17 19 from protocol_launchpadweb import protocol 18 20 from bug import bug 21 from bookmarks_store import * 19 22 20 23 class MainWindow : … … 55 58 column = gtk.TreeViewColumn("Bug #", renderer, text=0) 56 59 column.set_resizable(1) 60 column.set_sort_column_id(0) 57 61 column2 = gtk.TreeViewColumn("Product", renderer, text=1) 58 62 column2.set_resizable(1) 63 column2.set_sort_column_id(1) 59 64 column3 = gtk.TreeViewColumn("Titre", renderer, text=2) 60 65 column3.set_resizable(1) 66 column3.set_sort_column_id(2) 61 67 column4 = gtk.TreeViewColumn("Importance", renderer, text=3) 62 68 column4.set_resizable(1) 69 column4.set_sort_column_id(3) 63 70 column5 = gtk.TreeViewColumn("Status", renderer, text=4) 64 71 column5.set_resizable(1) 72 column5.set_sort_column_id(4) 65 73 tree.append_column(column) 66 74 tree.append_column(column2) … … 81 89 # 3- package search 82 90 # 4- advanced search 83 listing = gtk.ListStore(gobject.TYPE_STRING,gobject.TYPE_INT, gobject.TYPE_STRING) 91 self.bookmarks = bookmarks_store() 92 listing = self.bookmarks.get() 84 93 treeV.set_model(listing) 85 # essai temporaire86 # normalement ici on lit le fichier de préférences87 listing.insert_before(None, ["3 results", 2, "nautilus evolution crash"])88 listing.insert_before(None, ["many results", 2, "microsoft has majority"])89 listing.insert_before(None, ["Evo's bugs", 3, "evolution refresh folder"])90 listing.insert_before(None, ["Bug #42", 1, "42"])91 listing.insert_before(None, ["Content in +text mode", 1, "51835"])92 listing.insert_before(None, ["Search in bugs+text", 1, "51836"])93 94 renderer = gtk.CellRendererText() 94 95 column = gtk.TreeViewColumn("title", renderer, text=0) … … 206 207 207 208 # This function takes a bug Object and then display it nicely 208 # (it will be nice lyone day, I swear...)209 # (it will be nice one day, I swear...) 209 210 def __bugDisplay(self, zebug) : 210 211 bugnbr=str(zebug.getNbr())
