From 5543105dfbacac1d8d309fb0248a94bb988e42d6 Mon Sep 17 00:00:00 2001 From: gryf Date: Mon, 18 Apr 2022 19:14:37 +0200 Subject: [PATCH] Moved redraw from helpers to base class. --- wmdocklib/__init__.py | 3 +++ wmdocklib/helpers.py | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/wmdocklib/__init__.py b/wmdocklib/__init__.py index 0c0c814..0e8801c 100644 --- a/wmdocklib/__init__.py +++ b/wmdocklib/__init__.py @@ -70,3 +70,6 @@ class DockApp: self.font, self.background_color, self.palette) + + def redraw(self): + pywmgeneral.redraw_window() diff --git a/wmdocklib/helpers.py b/wmdocklib/helpers.py index 676cdfd..1778b3c 100644 --- a/wmdocklib/helpers.py +++ b/wmdocklib/helpers.py @@ -283,11 +283,6 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64, return char_width, char_height, charset_start, charset_width -def redraw(): - """Redraw the window.""" - pywmgeneral.redraw_window() - - def redraw_xy(x, y): """Redraw a given region of the window.""" pywmgeneral.redraw_window_xy(x, y)