TimezoneMap.TimezoneMap

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget TimezoneMap.TimezoneMap TimezoneMap.TimezoneMap Gtk.Widget->TimezoneMap.TimezoneMap

Subclasses:None

Properties

Inherited:Gtk.Widget (39)
Name Type Flags Short Description
selected-offset str r/w The selected offset from GMT in hours

Style Properties

Inherited:Gtk.Widget (17)

Signals

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Short Description
location-changed  

Fields

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
parent Gtk.Widget r  

Class Details

class TimezoneMap.TimezoneMap(**kwargs)
Bases:Gtk.Widget
Abstract:No
Structure:TimezoneMap.TimezoneMapClass
classmethod new()
Return type:TimezoneMap.TimezoneMap
clear_location()

Clear the location currently set for the TimezoneMap.TimezoneMap. This will remove the highlight and reset the map to its original state.

get_location()
Returns:the map location.
Return type:TimezoneMap.TimezoneLocation

Returns the current location set for the map.

get_selected_offset()
Returns:The selected offset.
Return type:float

Returns the currently selected offset in hours from GMT.

get_timezone_at_coords(lon, lat)
Parameters:
Return type:

str

set_coords(lon, lat)
Parameters:
set_location(lon, lat)
Parameters:
set_selected_offset(offset)
Parameters:offset (float) – The offset from GMT in hours

Set the currently selected offset for the map and redraw the highlighted time zone.

set_timezone(timezone)
Parameters:timezone (str) –
set_watermark(watermark)
Parameters:watermark (str) –

Signal Details

TimezoneMap.TimezoneMap.signals.location_changed(timezone_map, object)
Signal Name:

location-changed

Flags:

RUN_FIRST

Parameters:

Property Details

TimezoneMap.TimezoneMap.props.selected_offset
Name:selected-offset
Type:str
Default Value:''
Flags:READABLE, WRITABLE

The selected offset from GMT in hours