summaryrefslogblamecommitdiffstats
path: root/Src/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/0007523691f2001019c79f38f40e52ba
blob: 880b9fc4ba7678cc65ee4dff170be9e731245c62 (plain) (tree)




























                                                                                                        
import datetime
import gtk

class BaseStationInformation: 
    def __init__ (self):
        self.country = 'Nowhere'
        self.provider = 'Carry'
        self.arfcn = 0
        self.rxlev = 0
        self.neighbours = []
        
        def get_list_model():
            return [self.provider, self.arfcn, self.rxlev, datetime.datetime.now().strftime('%I:%M %p')]
        
class BaseStationInformationList:
    def __init__(self):
        self._base_station_list = []
        
    def add_station(self, base_station):
        self._base_station_list.append(base_station)
    
    def get_dot_code(self):
        pass
    
    def get_list_store(self):
        store = gtk.ListStore(str,str,str,str)
        for item in self._base_station_list
        return store