Move graph location

This commit is contained in:
Jordan
2021-12-04 14:32:29 -05:00
committed by jordanruthe
parent fdf81ecf06
commit e26e4006d6
2 changed files with 3 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
from panels.menu import MenuPanel
from ks_includes.graph import HeaterGraph
from ks_includes.widgets.graph import HeaterGraph
def create_panel(*args):
return MainPanel(*args)
@@ -97,7 +97,6 @@ class MainPanel(MenuPanel):
child = name.get_children()[0].get_children()[0].get_children()[1]
child.set_ellipsize(True)
child.set_ellipsize(Pango.EllipsizeMode.END)
logging.info("DClass %s %s" % (device, class_name))
temp = Gtk.Label("")
@@ -229,9 +228,7 @@ class MainPanel(MenuPanel):
def update_graph(self):
self.labels['da'].queue_draw()
alloc = self.labels['devices'].get_allocation()
logging.info("Devices height: %s" % alloc.height)
alloc = self.labels['da'].get_allocation()
logging.info("DA height: %s" % alloc.height)
return True
def update_temp(self, device, temp, target):