Changeset 3695
- Timestamp:
- 08/31/08 20:27:28 (5 years ago)
- Location:
- branch/UmitBluetooth
- Files:
-
- 1 added
- 9 modified
-
UmitBT/__init__.py (modified) (1 diff)
-
UmitBT/share/__init__.py (modified) (1 diff)
-
UmitBT/share/icons/__init__.py (modified) (1 diff)
-
UmitBT/share/pixmaps/__init__.py (modified) (1 diff)
-
UmitBT/umitBTCore/__init__.py (modified) (1 diff)
-
UmitBT/umitBTCore/about.py (modified) (2 diffs)
-
UmitBT/umitBTCore/btcore.py (modified) (5 diffs)
-
UmitBT/umitBTCore/interface.py (modified) (2 diffs)
-
UmitBT/umitBTCore/path.py (added)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/UmitBluetooth/UmitBT/__init__.py
r3522 r3695 19 19 20 20 __author__ = "Devtar Singh <devtar@gmail.com>" 21 __date__ = " 9 August2008"22 __version__ = "0.7RC 1"21 __date__ = "1 September 2008" 22 __version__ = "0.7RC2" -
branch/UmitBluetooth/UmitBT/share/__init__.py
r3522 r3695 19 19 20 20 __author__ = "Devtar Singh <devtar@gmail.com>" 21 __date__ = " 9 August2008"22 __version__ = "0.7RC 1"21 __date__ = "1 September 2008" 22 __version__ = "0.7RC2" -
branch/UmitBluetooth/UmitBT/share/icons/__init__.py
r3522 r3695 19 19 20 20 __author__ = "Devtar Singh <devtar@gmail.com>" 21 __date__ = " 9 August2008"22 __version__ = "0.7RC 1"21 __date__ = "1 September 2008" 22 __version__ = "0.7RC2" -
branch/UmitBluetooth/UmitBT/share/pixmaps/__init__.py
r3522 r3695 19 19 20 20 __author__ = "Devtar Singh <devtar@gmail.com>" 21 __date__ = " 9 August2008"22 __version__ = "0.7RC 1"21 __date__ = "1 September 2008" 22 __version__ = "0.7RC2" -
branch/UmitBluetooth/UmitBT/umitBTCore/__init__.py
r3388 r3695 19 19 20 20 __author__ = "Devtar Singh <devtar@gmail.com>" 21 __date__ = " 9 August2008"22 __version__ = "0.7RC 1"21 __date__ = "1 September 2008" 22 __version__ = "0.7RC2" -
branch/UmitBluetooth/UmitBT/umitBTCore/about.py
r3522 r3695 23 23 import os 24 24 25 import path 26 25 27 class about_dialog: 26 28 … … 33 35 self.about.set_authors(["Devtar Singh <devtar@gmail.com>"]) 34 36 self.about.set_website("www.umitproject.org") 35 umit_logo = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join( "UmitBT", "share", "icons", "umit_16.ico")))37 umit_logo = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "icons", "umit_16.ico"))) 36 38 self.about.set_icon(umit_logo) 37 39 self.about.set_copyright("License: GNU GPL") -
branch/UmitBluetooth/UmitBT/umitBTCore/btcore.py
r3522 r3695 43 43 import interface 44 44 import io 45 import path 45 46 46 47 # globals used due to functions such as set_info and ease of access in io.py. needs redesigning … … 69 70 count = 1 70 71 if(os.name=="mac"): 72 # Lightblue Output: [('00:0E:6D:71:A2:0B', u'My6600', 5243396)]. Yet to be tested. 71 73 btdevices = lightblue.findservices() 72 # Lightblue Output: [('00:0E:6D:71:A2:0B', u'My6600', 5243396)]73 74 else: 74 75 btdevices = bluetooth.discover_devices(flush_cache = True, lookup_names = True) … … 103 104 print "BTID: " + str(btid) 104 105 if(os.name=="mac"): 106 # Lightblue Output: [('00:0D:93:19:C8:68', 10, 'OBEX Object Push')]. Yet to be tested. 105 107 sdpservices = lightblue.findservices(address=btmac[btid]) 106 # Lightblue Output: [('00:0D:93:19:C8:68', 10, 'OBEX Object Push')]107 108 else: 108 109 sdpservices = bluetooth.find_service(address=btmac[btid]) … … 127 128 btnamesearch = [""] 128 129 # btdb.db search 129 if(os.path.exists(os.path.join( "UmitBT", "config", "db", "btdb.db"))):130 if(os.path.exists(os.path.join(path.paths, "UmitBT", "config", "db", "btdb.db"))): 130 131 print "start manufac detection" 131 btdb_dir = os.path.abspath(os.path.join( "UmitBT", "config", "db", "btdb.db"))132 btdb_dir = os.path.abspath(os.path.join(path.paths, "UmitBT", "config", "db", "btdb.db")) 132 133 btdb = open(btdb_dir, "rb") 133 134 while ((len(btname)-1) > count): … … 168 169 count+=1 169 170 if(btmanu[count].find("Nokia") > -1 ): 170 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join( "UmitBT", "share", "pixmaps", "nokia.png")))171 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "nokia.png"))) 171 172 interface.mapmodel.append([btname[count], pixbuf]) 172 173 elif(btmanu[count].find("Motorola") > -1): 173 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join( "UmitBT", "share", "pixmaps", "moto.png")))174 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "moto.png"))) 174 175 interface.mapmodel.append([btname[count], pixbuf]) 175 176 elif(btmanu[count].find("Sony") > -1): 176 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join( "UmitBT", "share", "pixmaps", "sony-eric.png")))177 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "sony-eric.png"))) 177 178 interface.mapmodel.append([btname[count], pixbuf]) 178 179 else: 179 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join( "UmitBT", "share", "pixmaps", "bt.png")))180 pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "bt.png"))) 180 181 interface.mapmodel.append([btname[count], pixbuf]) 181 182 -
branch/UmitBluetooth/UmitBT/umitBTCore/interface.py
r3522 r3695 30 30 import about 31 31 import btcore 32 import path 32 33 33 34 … … 56 57 self.window.set_size_request(800, 500) 57 58 self.window.set_title("Umit Bluetooth Scanner") 58 win_icon = os.path.join( "UmitBT", "share", "icons", "umit_16.ico")59 win_icon = os.path.join(path.paths, "UmitBT", "share", "icons", "umit_16.ico") 59 60 self.window.set_icon_from_file(win_icon) 60 61 self.window.set_position(gtk.WIN_POS_CENTER) -
branch/UmitBluetooth/setup.py
r3578 r3695 28 28 from stat import * 29 29 30 #main_dir = os.path.join('UmitBT', 'umitBTCore')31 #higwidgets_dir = os.path.join('UmitBT','higwidgets')32 30 sample_dir = os.path.join('UmitBT','sample') 33 31 pixmaps_dir = os.path.join('UmitBT','share', 'pixmaps')
