예제 #1
0
 def __init__(self):
     self.data = Data()
예제 #2
0
 def __init__(self):
     self.list_observer = []
     self.data = Data()
     self.measurements_changed()
예제 #3
0
from base.subject import Subject
from weather_data.weather_data import WeatherData
from element_display.current_condition import CurrentCondition
from weather_data.data import Data


if __name__ == '__main__':
    data = Data()
    wd = WeatherData()
    x = CurrentCondition()

    wd.register_observer(x)

    x.display()
    wd.measurements_changed()
    x.display()
예제 #4
0
 def __init__(self):
     self.data_forecast = Data()
예제 #5
0
 def __init__(self):
     self.data_stat = Data()