RingOV / gis-weather

Customizable weather widget
58 stars 18 forks source link

DeprecationWarning: Gtk.Window #53

Open johndoe71rus opened 1 year ago

johndoe71rus commented 1 year ago

lubuntu 22.04 Gis Weather 0.8.4.18

some DeprecationWarning

$  gis-weather 
Gis Weather 0.8.4.18
Папка конфигурации:
    /home/johndoe/.config/gis-weather/gw_config1.json
/usr/share/gis-weather/gis-weather.py:643: DeprecationWarning: Gtk.StatusIcon.set_from_file is deprecated
  self.indicator.set_from_file(os.path.join(APP_PATH, "icon.png"))
/usr/share/gis-weather/gis-weather.py:645: DeprecationWarning: Gtk.StatusIcon.set_visible is deprecated
  self.indicator.set_visible(True)
/usr/share/gis-weather/gis-weather.py:1580: DeprecationWarning: Gtk.Window.set_has_resize_grip is deprecated
  self.window_main.set_has_resize_grip(False)
/usr/share/gis-weather/gis-weather.py:1639: DeprecationWarning: Gtk.Window.set_opacity is deprecated
  self.window_main.set_opacity(opacity)
Размеры виджета:
    ширина = 521 высота = 225 в т.ч. отступ = 20
/usr/share/gis-weather/gis-weather.py:1591: DeprecationWarning: Gtk.Widget.is_composited is deprecated
  if not self.window_main.is_composited():
Ваш экран поддерживает прозрачность
> Получаю погоду на 3 дней                                                                                             
> Скачиваю https://services.gismeteo.ru/inform-service/inf_chrome/forecast/?lang=ru&city=4392                          
OK
> обновлено на сервере 12:00
> погода получена 14:37
> Следующее обновление через 60 мин
----------------------------------------
/usr/share/gis-weather/gis-weather.py:656: DeprecationWarning: Gtk.StatusIcon.get_size is deprecated
  self.draw_text_to_png(self.indicator.get_size(), text)
/usr/share/gis-weather/gis-weather.py:737: DeprecationWarning: Gtk.StatusIcon.set_tooltip_markup is deprecated
  self.indicator.set_tooltip_markup(markup)