Skip to content

Commit

Permalink
Added "Height tune" in Windows tab (changed height of widget)
Browse files Browse the repository at this point in the history
  • Loading branch information
RingOV committed Jun 30, 2019
1 parent 9db2783 commit 6254871
Show file tree
Hide file tree
Showing 54 changed files with 2,972 additions and 2,809 deletions.
5 changes: 5 additions & 0 deletions dialogs/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def __init__(self):
self.spinbutton_scale.connect("value-changed", self.save_settings)
self.switch_always_on_top = self.ui.get_object('switch_always_on_top')
self.switch_always_on_top.connect("notify::active", self.save_settings)
self.spinbutton_height_tune = self.ui.get_object('spinbutton_height_tune')
self.spinbutton_height_tune.connect("value-changed", self.save_settings)


self.clear_x_pos = self.ui.get_object('clear_x_pos')
Expand All @@ -215,6 +217,8 @@ def __init__(self):
self.clear_scale.connect("clicked", self.clear_settings)
self.clear_always_on_top = self.ui.get_object('clear_always_on_top')
self.clear_always_on_top.connect("clicked", self.clear_settings)
self.clear_height_tune = self.ui.get_object('clear_height_tune')
self.clear_height_tune.connect("clicked", self.clear_settings)

# View

Expand Down Expand Up @@ -542,6 +546,7 @@ def load_config_into_form(self):
self.load(self.switch_block_sunrise__show)
self.load(self.switch_block_moonrise__show)
self.load(self.switch_always_on_top)
self.load(self.spinbutton_height_tune)

self.adjustment_n_max.set_upper(gw_config_set['max_days'])

Expand Down
202 changes: 128 additions & 74 deletions dialogs/settings_dialog.ui

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions gis-weather.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# gis_weather.py
v = '0.8.3.9'
v = '0.8.3.10'
# Copyright (C) 2013-2019 Alexander Koltsov <ringov@mail.ru>
#
# This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -203,8 +203,8 @@ def make_dirs(path):
'block_icons_top': 0,
'day_left': 0,
'day_top': 0,
'height_fix': 0,
'width_fix': 0,
'height_tune': 0,
'width_fix': 0, #FIXME Not used
'splash_icon_top': 0,
'splash_version_top': 0,
'block_wind_direct_small_left': 0,
Expand Down Expand Up @@ -994,7 +994,7 @@ def Draw_Weather(self, cr):

for i in range(1, n+1):
try:
self.draw_weather_icon(cr, i, -8+block_icons_left + margin + block_margin + (i-1)*w_block + (i-1)*block_h_offset, block_icons_top + height-h_block-10 - margin)
self.draw_weather_icon(cr, i, -8+block_icons_left + margin + block_margin + (i-1)*w_block + (i-1)*block_h_offset, block_icons_top + height-h_block-10 - margin - height_tune)
except:
print('Can\'t show weather for %s day'%str(i))

Expand Down Expand Up @@ -1584,7 +1584,7 @@ def set_window_properties(self):
if n < 1: n = 1
# width = w_block*n + block_margin*2 + 10*(n - 1) + 2*margin + block_icons_left
width = w_block*n + block_h_offset*n + 2*margin + block_icons_left + width_fix
height = 260 + block_margin + 2*margin + height_fix
height = 260 + block_margin + 2*margin + height_tune
self.window_main.resize(int(width*scale), int(height*scale))
self.window_main.move(x_pos, y_pos)
if sticky:
Expand Down
Binary file modified i18n/bg/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/cs/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/de/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/el/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/es/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/es_ES/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/et_EE/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/fr/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/hr/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/hu/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/it/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/ja/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/lt/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/nl_NL/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/pl/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/pt/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/pt_BR/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/pt_PT/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/ro/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/ru/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/sr/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/sv/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/tr/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/tr_TR/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Binary file modified i18n/uk/LC_MESSAGES/gis-weather.mo
Binary file not shown.
Loading

0 comments on commit 6254871

Please sign in to comment.