Changeset 3057

Show
Ignore:
Timestamp:
06/29/08 16:23:43 (5 years ago)
Author:
devtar
Message:

fixed icon click mapping

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/BluetoothScanner/umitBluetooth/interface.py

    r3056 r3057  
    155155        #Output test 
    156156        pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("pixmaps", "bt.png"))) 
    157         self.mapmodel.append(["Test", pixbuf]) 
    158          
     157        self.mapmodel.append(["Test1", pixbuf]) 
     158        self.mapmodel.append(["Test2", pixbuf]) 
     159 
    159160        self.window.show_all() 
    160161 
     
    176177    def iconclick_cb(self, path, action):         
    177178                print "clicked" 
    178                 iter = self.btmap.get_model().get_iter(0) 
    179                 print "\n" + str(iter) 
     179                iter = self.btmap.get_cursor() 
     180                #outputs the location of the icon numerically 
     181                print "\n" + str(iter[0])[:2].replace("(","") 
    180182         
    181183    def on_about(self, action):