1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 04:20:17 +01:00

Moved redraw from helpers to base class.

This commit is contained in:
2022-04-18 19:14:37 +02:00
parent 72996466cf
commit 5543105dfb
2 changed files with 3 additions and 5 deletions

View File

@@ -70,3 +70,6 @@ class DockApp:
self.font, self.font,
self.background_color, self.background_color,
self.palette) self.palette)
def redraw(self):
pywmgeneral.redraw_window()

View File

@@ -283,11 +283,6 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64,
return char_width, char_height, charset_start, charset_width return char_width, char_height, charset_start, charset_width
def redraw():
"""Redraw the window."""
pywmgeneral.redraw_window()
def redraw_xy(x, y): def redraw_xy(x, y):
"""Redraw a given region of the window.""" """Redraw a given region of the window."""
pywmgeneral.redraw_window_xy(x, y) pywmgeneral.redraw_window_xy(x, y)