Changeset 41 for conseil.py
- Timestamp:
- 07/17/06 15:48:46 (2 years ago)
- Files:
-
- 1 modified
-
conseil.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
conseil.py
r40 r41 30 30 self.wTree = gtk.glade.XML("conseil.glade") 31 31 self.bugs_tabs= self.wTree.get_widget("bugs_tabs") 32 #hpane = self.wTree.get_widget("hpaned1") 33 #hpane.set_property("min-position", 100) 34 #self.sidebar_bm=self.wTree.get_widget("bookmarks") 32 35 #We remove directly the first page 33 36 # we might want to keep it and remove it at the first action … … 43 46 "on_ouvrir1_activate" : self.open_bookmarks } 44 47 self.wTree.signal_autoconnect(dic) 48 #self.sidebar_bm.connect("button_press_event", self.bookmarks_button_press) 45 49 #Wich BTS are we using ? 46 50 self.bts = protocol() … … 154 158 #middle click, we open the bug 155 159 if event.button == 2 : 156 #self.bookmarkClicked() 157 print "TODO : open the bug on middle click" 160 zetuple = widget.get_selection().get_selected() 161 #Fixme : what if the user didn't click on the tree first ? 162 if zetuple[1] != None : 163 clicked = bookmark(widget,None) 164 self.open_page(clicked) 165 158 166 #right click menu 159 167 elif event.button == 3 : … … 191 199 widget.open_page(clicked) 192 200 201 #open a page in the given widget using clicked, which is a bookmark object 193 202 def open_page(widget,clicked) : 194 203 method = clicked.get_method()
