halo.app module

class halo.app.Halo[source]

Bases: gi.repository.Gtk.Application

do_activate()[source]

activate(self)

do_startup()[source]

startup(self)

class halo.app.MainWindow(application)[source]

Bases: gi.repository.Gtk.ApplicationWindow

busy_cursor(w=None)[source]
check_resize()[source]

Resize the background image when window is resized and store new screen size to db.

clear_cursor(widget=None)[source]
fetch_weather(city=None, widget=None)[source]

Fetch the weather data from online endpoints and update the ui.

Parameters:
  • city – City for which weather is fetched.
  • widget – The GUI widget that triggered search.
refresh(widget=None)[source]

Fetch the latest data into the ui

render_weather()[source]

Update the current weather info of currently chosen city

show_about(w)[source]

Shows the about dialog.

Parameters:w – Widget
show_preference(w)[source]

Shows the Preference dialog.

Parameters:w – Widget
switch_city(widget)[source]

Change the city for which weather data is displayed

update_time()[source]

Updates the time shown as per the timezone of currently chosen city