aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/net_monitor3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net_monitor b/src/net_monitor
index e01cc86..b05f7a7 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -1,6 +1,7 @@
#!/usr/bin/python
from gi.repository import GObject
+from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import Pango
@@ -79,7 +80,7 @@ class LoadGraph:
self.max = max
# size of the GtkDrawingArea
- self.__rect = self.__inner = ()
+ self.__rect = self.__inner = Gdk.Rectangle()
self.maxval = 0 # maximum value in the history
self.__mesh_x = self.__mesh_y = 0 # distance in pixels between items
self.__get_max()